mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 00:13:12 +03:00
6f6fee2b89
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. |
||
---|---|---|
.. | ||
arvo | ||
autoprop | ||
base-dev | ||
herb | ||
interface | ||
landscape | ||
npm | ||
webterm | ||
symbolic-merge.sh |