-
Notifications
You must be signed in to change notification settings - Fork 4
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
Implement self parameters #19
Comments
Assuming I'm understanding correctly, the absence of this functionality's later steps are why this works:
but this does not?
Specifically, EDIT: It can, of course, be done with
|
What you are running into is a restriction in our implementation of the binding order. If we want to lift this restriction then we probably need two arguments list for
The And your example would be a very good motivation to implement such a feature in the language 👍 |
I do wonder if this could also be used to improve the ergonomic weaknesses that arise from the condition that Ξ₁ and Ξ₂ are entirely separately declared, by doing the split slightly differently for We would then have:
In addition, I would expect only Γ₃ to actually need passed to destructors as parameters. That would enable the following, rather more "typical" monoid definition:
With this, the difference between Additionally, because the
Thus limiting the need for its use to when stating destructors that rely upon other destructors in their signature, or when It may be possible to reduce this further, to only when Another possibility is to place
This would have the benefit of generally retaining reading order, which may help user comprehension. |
The text was updated successfully, but these errors were encountered: