Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@will-hanlen
Copy link
Contributor

@will-hanlen will-hanlen commented Dec 20, 2025

the +so parser expects an empty %many $coin to be rendered as .___ (3 cabs):

> (rush '.___' nuck:so)
[~ [%many p=~]]

but the current implementation of +co prints it with only 2 cabs:

> ~(rend co [%many ~])
".__"

this change fixes the +co renderer so that a full-roundtrip is possible.

@will-hanlen
Copy link
Contributor Author

i suppose there's a question regarding whether an empty %many should be allowed.

the dojo say no because it turns the %many list into a tuple.

> ._4__
4
> ._4_a__
[4 %a]
> .___
dojo: hoon expression failed

but i think it would be more useful if an empty %many was allowed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants