urbit/pkg/arvo/sys
fang 6f6fee2b89
hoon: in +ape, make zero a plain atom
In the `+ape` parser constructor, we were providing `0` as the parsing result
for the zero character. Hoon syntax dictates this is a `@ud` however,
resulting in a parsing output type of `?(@ud etc)`. Since `+ape` is commonly
used for parsing atoms of various kinds, one might end up with a result
of `?(@ud @)`, which would fail to nest directly under, say, `@uv`, requiring
parsers to add a casting step.

Here, we simply cast the zero result to `@` to make it perfectly generic. This
should alleviate the need for a casting step in parsers that need to fit their
output into a specific aura.

(The output type in the common case (ie, `+hex:ag`, `+viz:ag`) is now `?(@ @)`,
which is still somewhat strange, but should have better ergonomics.)

Since `@` can be used in any place `@ud` is accepted, this is a non-breaking
change.
2023-03-04 18:02:33 +01:00
..
vane ames: log pleas for corked bones 2023-03-01 19:34:41 -06:00
arvo.hoon kelvin: bump to 139 2023-01-13 16:12:35 -07:00
hoon.hoon hoon: in +ape, make zero a plain atom 2023-03-04 18:02:33 +01:00
lull.hoon Merge pull request #6344 from urbit/i/6339/dill-logs 2023-02-24 16:59:14 -05:00
zuse.hoon kelvin: bump to 139 2023-01-13 16:12:35 -07:00