Maybe allow nullary function syntax in definitions? #220
stylewarning
started this conversation in
Ideas and Proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We allow
(f)
as a shorthand for(f Unit)
but we don't supportas a shorthand for
for Unit-taking functions.
The difficulty here is that it's not possible to determine at parse time that
f
takes Unit, unless it is declared as such.Just posting this as an idea to see if others have thoughts.
Beta Was this translation helpful? Give feedback.
All reactions