News for hackers. Stuff that matters.
Re:A proposal for adding a pipe operator to JavaScript by dragonwriter on Tuesday October 19, 2021 @01:21PM (#28920722)
Your suggested code and the “status quo” code are not equivalent, and the with-pipes version isn't the conversion of either of the other two to the proposed pipes syntax.

Notably, on the first point, you proposed version drops two input variables from the other two versions, and on the second, the pipes version would correspond to the “status quo” version if the “_." prefixes were dropped.

It looks like you've made your proposed version look cleaner by both omitting required elements from it and adding unnecessary (and code-breaking) elements to the with-pipes version.

Re:A proposal for adding a pipe operator to JavaScript by thomas_moon on Tuesday October 19, 2021 @02:04PM (#28921330)
You're right, my mistake. Believe it or not, it wasn't intentional and I just completely spaced. Edited to be much closer.