Closed jvasileff closed 8 years ago
Fixed!
I wonder if that fix was too heavy-handed. There would be no problem if it weren't variable.
I wonder if that fix was too heavy-handed.
Perhaps so. It sort of goes against the idea of using currying as a benefit to the caller without adding implementation complexity or decreasing readability.
This also happens to be a big reason why I think the error is so important for variables–since splitting parameter lists seems so harmless.
(I say that after fixing some experimental code I had with functions similar in nature to Iterable.fold()()
where the fact that it's curried isn't very relevant to the impl.)
Could be, but I don't want to touch this again for 1.2.
Correct behavior for:
is hard to predict. Is
first
captured in the initial call tocounter(10)
, or is it scoped where it is actually declared?A possible solution would be to disallow declarations to be made in a function block for parameters that are not in the last parameter list.