30 ms·
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]`.
by throwamon 5y ago
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]`.
- djedr 5y ago> 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.