Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Haskell-like list notation #386

Closed
7 tasks done
rolyp opened this issue Aug 3, 2020 · 0 comments
Closed
7 tasks done

Haskell-like list notation #386

rolyp opened this issue Aug 3, 2020 · 0 comments

Comments

@rolyp
Copy link
Collaborator

rolyp commented Aug 3, 2020

Reinstate Haskell-style list notation, perhaps as syntactic sugar for (:) and Nil. There is a precedent for omitting it (PureScript), but given our in-progress notation for list comprehensions (#277), it seems natural to include it.

  • parse Nil as []
  • add (empty/non-empty) list notation to surface Expr
  • corresponding expr desugaring rule from formalism
  • add (empty/non-empty) list notation to surface Pattern
  • corresponding pattern desugaring rule from formalism
  • parse non-empty list notation in expressions
  • parse non-empty list notation in patterns
  • ban direct use of Nil, Cons in surface language – for consistency with Pair
@rolyp rolyp closed this as completed Nov 4, 2020
@rolyp rolyp added this to the v0.4: POPL 2022 milestone Nov 3, 2021
@rolyp rolyp added this to Fluid Jun 30, 2022
@rolyp rolyp moved this to Done in Fluid Jun 30, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
Status: Done
Development

No branches or pull requests

1 participant