-
Notifications
You must be signed in to change notification settings - Fork 12
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
Eta-expand constructors immediately #257
Comments
loop
for lam i -> loop i
.
@jonsterling |
This also gives us the ability to write |
I don't like this solution, because it actually requires elaborating it to not this lambda, but a type annotated one. This will disrupt overloading of constructors, so it is a non-starter. Instead, IMO, we really should continue to use the whole spine (sorry!), but maybe we can find a cleaner way to do it. Separately, we should find a way to provide the functionality of just writing |
(Sorry if my comment was difficult to understand, I am very sleepy. Will revisit tomorrow/today.) |
It is fine. Just that I did not know overloading is one of our goals. |
I'll think about it agian when I'm more awake. it may be possible to do what you want without disrupting anything... |
I have to study the elaboration of constructors more carefully, but one hacky proposal is to grab the tip of the "arrows". For example, during the elaboration of loop, its type should be |
@favonia For some reason I'm worried about that idea, but I don't know why 😆 I'll think it over. |
No description provided.
The text was updated successfully, but these errors were encountered: