Re:Show HN: A JavaScript function that looks and behaves lik...
by gnfargbl on Wednesday September 27, 2023 @07:23AM
(#37673073)
If you read all the text, it seems like the entire repo is intended to be a satire on https://github.com/tc39/proposal-pipeline-operator.
[ Parent
| on HN ]
Re:Show HN: A JavaScript function that looks and behaves lik...
by code_runner on Wednesday September 27, 2023 @07:38AM
(#37673214)
Unfortunately I’m not getting satire vibes from that blurb. I’m only more scared for JavaScript.
I love JavaScript but this pipe thing is horrific.
Re:Show HN: A JavaScript function that looks and behaves lik...
by keb_ on Wednesday September 27, 2023 @09:01AM
(#37674017)
Tell that to Unix/FP lovers.
Re:Show HN: A JavaScript function that looks and behaves lik...
by code_runner on Wednesday September 27, 2023 @10:40AM
(#37675326)
hahaha i mean this implementation. piping things in the shell is great
Re:Show HN: A JavaScript function that looks and behaves lik...
by keb_ on Wednesday September 27, 2023 @12:24PM
(#37677061)
Ahh OK. Yeah, I always find trying to shoehorn language semantics via functions to be kinda awkward. The best attempt I've seen is this addition of async/await to Lua, which actually looks pretty usable [1].
Re:Show HN: A JavaScript function that looks and behaves lik...
by jeroenhd on Wednesday September 27, 2023 @09:57AM
(#37674731)
Is it? I think it's an implementation of the pipe operator rather than satire of it. Javascript doesn't provide the flexibility to extend the language with pipe operators (though tools like Babel will let you use the pipe operator already).
The clunky syntax removes all the benefits of the pipe operator. The entire thing is syntactic sugar, wrapping it in confusing functions just breaks the entire concept.
Re:Show HN: A JavaScript function that looks and behaves lik...
by pwdisswordfishc on Wednesday September 27, 2023 @11:49AM
(#37676474)
So what exactly does it satirize?