News for hackers. Stuff that matters.
Re:Parentheses Are Just Typechecking by throwamon on Thursday June 24, 2021 @09:51PM (#27626301)
Interesting ideas! Would it make sense to "sugarify" currying even further? For instance, `f[x][y][z]` could become something like `f→[x y z]`.
Re:Parentheses Are Just Typechecking by djedr on Friday June 25, 2021 @07:31AM (#27629411)
> Interesting ideas!

:-)

> Would it make sense to "sugarify" currying even further? For instance, `f[x][y][z]` could become something like `f→[x y z]`.

Technically it could be done. Does it make sense? Depends on what are you trying to achieve. Personally I tend toward an _extremely_ minimalist approach and the complexity of that would not be worth it for me. In fact today I'd question the addition of `|` and `!` as too specific.

The syntax you proposed does save a few brackets, but the functionality could also be achieved with a specialized function:

  →[f x y z]
So I'd stick to that unless I found a more compelling reason to include the sugar.