mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 16:51:42 +03:00
db899ce09f
Prefixing a path with a com will cause the path to be interpreted as a `$pith`, aka a typed path. Instead of interpreting every element as a string, we use hoon's atom syntaxes to read the values, and tag them with appropriate auras. For example, `,/hi/5/0x6` becomes `[[%tas %hi] [%ud 5] [%ux 0x6] ~]`. Dynamic elements via `()` and `[]` is also supported, and may optionally be tagged with `aura+(etc)` syntax. For example, `,/next/ud+[+(1)]`. Could _maybe_ be refactored to use `+nuck`, but we'd need to wrestle the output, and we're a little stricter here anyway. This shadows existing `,/some-wing` syntax, which... presumably does something, but is not in active use anywhere. We might consider removing that syntax. Eventually, we probably want this to be the primary urbit-native path type. Invalidating existing path syntax is very invasive though, so for now we piggy-back on "com changes the parsing mode" for a less disruptive addition. |
||
---|---|---|
.. | ||
vane | ||
arvo.hoon | ||
hoon.hoon | ||
lull.hoon | ||
zuse.hoon |