-
Notifications
You must be signed in to change notification settings - Fork 110
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
Scattered clauses allowed after end
?
#697
Comments
Originally I think scattered functions were effectively syntactic sugar for a function with all the clauses gathered together at the location of the |
So... it still works almost completely backwards :-D
I checked lots of possible orderings between the 5 lines. As far as I can tell the only ordering requirement is that
I think this is required for scattered functions. |
Agreed, I think
@Alasdair could confirm, and perhaps document? |
The |
Right now the However for datatypes they could actually have some more usage, because we could use the We could allow:
as I think this is allowed for mappings. We could also just change it to be:
for both mappings and functions, and remove the separate |
I think it was recently noted that you don't actually need an
end
for scattered definitions, but I just discovered that you can have clauses after theend
.That prints 7. What exactly does
end
do? Seems almost like it's a nop?The text was updated successfully, but these errors were encountered: