-
Notifications
You must be signed in to change notification settings - Fork 79
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
Draft: Add Else Operator #198
base: master
Are you sure you want to change the base?
Conversation
Since this PR has been open for some time, let me know if you want to pair program this together some time, want me to take it over entirely, or if you want to keep working on it solo. I've been rather slow to respond lately so I apologize for slowing things down a bit but your contribution is still very much appreciated 🙂. |
Hi! No worries, and sorry for the slow progress! I'm definitely open to pair program whenever you might be available! I'm hoping to finish this and merge it in |
…el and delete dead code
Thanks for the pairing session! Was a great learning experience and thanks for taking the time out :) To summarize, things that are left is mainly handling the single line |
Add the Else Operator with type:
(else): Maybe a -> a -> a
This PR adds a new
Else
binary operator into the AST and handles the tracking of theMaybe
type constructor from the prelude.Maybe a
type from preludeMaybe a else b
definitions in the AST and Parsing by desugaring into a Match AST