-
Notifications
You must be signed in to change notification settings - Fork 174
Open
Description
Right now when you have a structure like {foo: Link} Pathing into it with /foo could either mean "get the value at foo (the link)" or "get the data pointed at by foo".
I think we should standardize around using /foo to mean "get the link" and /foo/ to mean "traverse into the link".
This applies to IPLD Patch, to IPLD URLs, and to traversal in general.
One question this raises is what to do when foo isn't a Link and someone tries to do /foo/.
Another question is how this would look when translated into path segments. Would it result in a path segment that's an empty string?
cc @rvagg on thoughts. Might be useful to formalize somewhere and make sure the JS and Go (and Rust) implementations are aligned.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
🥞 Todo