News for hackers. Stuff that matters.
Re:Pipe Operator (|>) For JavaScript by ch4s3 on Friday January 20, 2023 @10:49AM (#34454677)
From what I understand the constraint is intentional to guide you in the direction of writing simple pipe chains.
Re:Pipe Operator (|>) For JavaScript by dmix on Friday January 20, 2023 @10:55AM (#34454765)
That's probably a wise choice. Pipes are great for simple situations, mostly for code clarity. But it can be abused easily, like a hammer seeking nails.

It's similar to await/async, you eventually start designing code that better suits that interface rather than pigeonholing it with complex syntax.