hyperoslo / NSString-HYPRelationshipParser

Parse string representations of model relationships
http://hyper.no
Other
1 stars 0 forks source link

Implement compare: protocol #11

Open zenangst opened 9 years ago

zenangst commented 9 years ago

I think it could be useful to be able to compare relationships.

3lvis commented 9 years ago

Do you have a use case?

zenangst commented 9 years ago

To see if something shares a prefix or the same relation property.

zenangst commented 9 years ago

https://github.com/hyperoslo/NSDictionary-HYPNestedAttributes/blob/master/Source/NSDictionary%2BHYPNestedAttributes.m#L77

3lvis commented 9 years ago

Ohhh, I see now

3lvis commented 9 years ago
zenangst commented 9 years ago

I think that could be neat :)

kostiakoval commented 9 years ago

What are you using this pod for? in what project are you using it

3lvis commented 9 years ago

@kostiakoval we are using it in Form and in our private project

We use it to parse this type of strings => @"employees[0].email"

They are used to represent a relationship in a flat way, pretty much like something NoSQL