Closed berekuk closed 3 months ago
Latest commit: 4ce0af0ecee10e3eb0e3dcbba2bef1ddfa33840e
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
The latest updates on your projects. Learn more about Vercel for Git ↗︎
hm...
Hub preview is down. Not sure why though.
Previews on specific commits don't work anymore (I mentioned this in https://quri.slack.com/archives/C06KPA4MGU9/p1711572884389439?thread_ts=1711571253.986579&cid=C06KPA4MGU9 yesterday), but previews on branches do: https://quri-hub-git-prettier-bug-quantified-uncertainty.vercel.app/
Huh, interesting, thanks!
Great, I can confirm that this works!
This fixes #3110, and also fixes #2670, and also simplifies grammar and AST (see tests in diff for examples).
Previously:
Now:
The arrow bug in particular was caused by parsing let statements as lambdas first, before falling back on arbitrary expressions. I don't know why it was there; there might be some obscure case where this is a technically breaking change, but all tests are parsed and I hope it's fine.
Note that this doesn't give us any significant performance improvements; I already unwrap single-expression blocks during compilation.
(Which is good because otherwise I'd be worried about this change; I remember that some time ago skipping these block nodes wasn't safe).