-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
List notation #45
Comments
Most brain-dead list notation that doesn't require two distinct notations (e.g. :: and [x, y, ...] in Haskell). |
In Prolog (and I think Erlang also) "cons" can be written |
Ok, that's useful to know - thanks! That's what I've just implemented, but with "..." instead of "|" (reminiscent of ES6 spread notation).
Implementing that for list patterns turned out to be quite tricky because the syntax of tries requires the pattern parser to be written in a continuation-passing style..gah. |
do Broken syntax for nullary constructors #49 first?infix cons (::)revisit continuation-passing idiom for trie-parsing? (requires trie zipper)The text was updated successfully, but these errors were encountered: