-
Notifications
You must be signed in to change notification settings - Fork 50
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
Precedence for infix operators #14
Comments
Infix operators are planned, in some way or another. The exact details are not squared away yet. However, you will need to use |
Could you elaborate why there will be no distinction between prefix and infix? |
I would like to avoid assigning meaning to the names of identifiers. Lisp identifiers are traditionally much more lax about which characters you can use in an identifier, so you can name an identifier |
Associativity is now implemented in the new implementation in e7767ad, but precedence is still unimplemented. You can now specify associativity when writing a definition by writing This means type signatures can get a bit cleaner, since |
Is it possible implement Haskell syntax for infix operators?
Example :
In this sense
(infixr 4 +)
is just a shorthand macro definition that gets globally applied to all expressions.The text was updated successfully, but these errors were encountered: