Closed janniks closed 2 weeks ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
stacksjs-docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 13, 2024 6:03am |
I tried it and found this use case that throws a parse error:
{ a: 0x68656c6c6f21 }
@hugocaillard Good catch, noticed that nested values will be tricky with overlaps. I thought the entire
combinator solved this, but that's not used for the nested values.. 🙃 -- updated the order to fix this case, there might be more though..
In this case it was detecting the 0x..
as 0
matches an int, and will continue instead of trying other cl-values.
Cl.parse
, which allows us to parse clarity syntax as JS representationClarityValue
.prettyPrint
tostringify
(matchingJSON.
more closely in naming) got feedback from users that they were expectingprettyPrint
toconsole.log
and they were confused that there wasn't any output.Examples