Pipes: Currying vs. Hack Pipes #1376
Replies: 3 comments
-
Thanks @berekuk for bringing this issue up and documenting it so well. From my angle, I don't want us to get very complicated with Squiggle. Getting a solid numeric+JS support is enough work. I'd expect currying to make things more complicated for users, plus make the interpreter substantially more complicated. The pipe operator is nice, but I really don't see it as an essential part of the language. My inclination here would be to minimize complexity, and I think hack pipes are the best way to get there. Another thing we could totally do is just to remove all pipe functionality now, and add it later(when we have capacity to do it well). It very much seems like a nice-to-have to me. |
Beta Was this translation helpful? Give feedback.
-
Some notes
You have to write If you use pipes then this would be equivalent to If we were imitating ReScript then the next feature would be to allow writing Of course, this does not apply to plusN as there is no currying. PS. On a strictly typed language currying can be optimized and be converted into normal function calls when possible. |
Beta Was this translation helpful? Give feedback.
-
We have pipes now, closing. |
Beta Was this translation helpful? Give feedback.
-
From Slava,
Beta Was this translation helpful? Give feedback.
All reactions