You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think resources introduces a concept that HAL doesn't have.
What do you think about taking it a bit further without actually changing the semantics of existing code?
In general when you do x.y, can't you say that y is first a property and if that doesn't exist a link, and if that doesn't exist an embedded collection, and if that doesn't exist it's an error? In ambiguous cases when you have a property 'y' and a link 'y', you could always default to the full syntax.
Activity
dblock commentedon Sep 18, 2014
I think
resourcesintroduces a concept that HAL doesn't have.What do you think about taking it a bit further without actually changing the semantics of existing code?
In general when you do
x.y, can't you say thatyis first a property and if that doesn't exist a link, and if that doesn't exist an embedded collection, and if that doesn't exist it's an error? In ambiguous cases when you have a property 'y' and a link 'y', you could always default to the full syntax.dblock commentedon Sep 18, 2014
Check out the changes in https://github.com/dblock/hyperclient/tree/delegation-of-methods, that is actually mergeable and accomplishes what I proposed above. I'll PR after #61 is merged.
dblock commentedon Sep 26, 2014
I PRed this as #63.
dblock commentedon Sep 30, 2014
Closing this.