News for hackers. Stuff that matters.
Re:Pipe Operator (|>) For JavaScript by cjbgkagh on Friday January 20, 2023 @11:01AM (#34454878)
The tie-fighter infix|> <|. |>(+)<|

Then there are ||>, |||> and <|, <||. As well as >> and <<.

Would be nice to use computational expressions for async and generators. (https://es.discourse.group/t/add-computation-expressions-fro...).

This proposal reminds me of Scala with anonymous parameters '_'. Could I use more than one '%' for curried functions. xs.reduce(_+_)? Though I guess for perf reasons it might make sense to keep things as tuples so it would be xs.reduce(%[0]+%[1]).

There are no comments on this comment yet.