You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I came across Clio and it looks really cool, I'm excited to try using it for some projects! One issue I ran into is that in nested anonymous functions I can't figure out how to specify which parameters belong to which function.
I'm not sure how I'd write this in Clio due to the nested anonymous functions creating ambiguity (I can't specify that item is a parameter of the inner function and m is a parameter of the outer function):
Describe the solution you'd like
I'm not sure how this could be resolved while keeping Clio's implicit parameter syntax. Maybe there could be some sort of new syntax like JavaScript's function() {} that keeps the fn and explicit arguments but still returns an anonymous function? Something like:
Is your feature request related to a problem? Please describe.
I came across Clio and it looks really cool, I'm excited to try using it for some projects! One issue I ran into is that in nested anonymous functions I can't figure out how to specify which parameters belong to which function.
For example, here's a function in JavaScript:
I'm not sure how I'd write this in Clio due to the nested anonymous functions creating ambiguity (I can't specify that
item
is a parameter of the inner function andm
is a parameter of the outer function):Describe the solution you'd like
I'm not sure how this could be resolved while keeping Clio's implicit parameter syntax. Maybe there could be some sort of new syntax like JavaScript's
function() {}
that keeps thefn
and explicit arguments but still returns an anonymous function? Something like:Describe alternatives you've considered
I could just write thing as a regular function:
But this doesn't return an anonymous function so it wouldn't be a valid workaround in all cases.
The text was updated successfully, but these errors were encountered: