NoImplicitFunctionCurrying #119
Replies: 2 comments 1 reply
-
Before reading past the title I was immediately reminded of Richard Feldman talking about this being one of the more challenging topics when teaching Elm. Would I find this helpful?I find myself on both sides of this. I'm very comfortable with currying, which is funny because I learned it mostly from Elm, but I'm fine with never using it. I don't know how difficult this would be to implement but there's a decent chance I'd start using it once completed. Is there a better name for it?I think this name is perfectly fine. Someone to implement this ruleI don't think I'm interested in implementing, but I'll keep my eye this discussion. |
Beta Was this translation helpful? Give feedback.
-
What would an example of explicit function currying be?
Do you have an example on how to express that? Possibly in other words, what are the differences to a hypothetical NoCurrying rule? |
Beta Was this translation helpful? Give feedback.
-
What the rule should do:
Whenever a function is called, require all of its arguments to be specified.
In situations where currying is needed, the user will need to express that explicitly.
What problems does it solve:
elm-optimize-level-2
articles and recent discussion on the NoEtaReducibleLambdas rule), it sounds like explicit function currying would have performance benefits over Elm's built-in implicit currying.Examples of things the rule would report:
Examples of things the rule would not report:
When (not) to enable this rule:
If you come from a Haskell or ML language background, or are just generally comfortable with a point-free coding style, then this rule likely isn't for you.
If you come from a more traditional programming language background, or want to ensure that code written today will still be clearly understandable in future, then this may be the rule for you.
I am looking for:
Beta Was this translation helpful? Give feedback.
All reactions