FroLeMageBlanc
Re:Show HN: A JavaScript function that looks and behaves like a pipe o...
on Thursday September 28, 2023 @09:32AM (#37689361)
If you can’t understand the difference between pure (no side effects) and functional (applying and composing functions), I don’t know what to tell you.
Re:Show HN: A JavaScript function that looks and behaves like a pipe o...
on Wednesday September 27, 2023 @10:44AM (#37675381)
Purely functional programming is a subset of functional programming (see F# for instance). I was referring to the pipe operator syntax common to many functional programming languages like Haskell, F#, OCaml, Elixir, Elm and so on...
Re:Show HN: A JavaScript function that looks and behaves like a pipe o...
on Wednesday September 27, 2023 @10:29AM (#37675168)
Haha thanks! Yes haters gonna hate. If you like it, use it; if you don’t, simply don’t use it ;)
Re:Show HN: A JavaScript function that looks and behaves like a pipe o...
on Wednesday September 27, 2023 @10:18AM (#37675035)
Is functional programming a joke? YMMV...
Re:Show HN: A JavaScript function that looks and behaves like a pipe o...
on Wednesday September 27, 2023 @09:46AM (#37674593)
Thanks! I’m currently trying to find a better TS type but that’s a bit hairy...
Re:Show HN: A JavaScript function that looks and behaves like a pipe o...
on Wednesday September 27, 2023 @09:37AM (#37674480)
The pipe function of `fp-ts` doesn’t have direct access to methods and properties of the pipe output like Verticalize. You have to wrap them into anonymous functions. Same with promises.
Re:Show HN: A JavaScript function that looks and behaves like a pipe o...
on Wednesday September 27, 2023 @09:21AM (#37674287)
Author here. Thanks! Yes I have to confess I have both a Scheme and Elm background ;)
Re:Show HN: A JavaScript function that looks and behaves like a pipe o...
on Wednesday September 27, 2023 @08:25AM (#37673612)
Author here. Thanks for your nice comment. I added a note to show the "normal" autoformatted syntax.
Re:Show HN: A JavaScript function that looks and behaves like a pipe o...
on Wednesday September 27, 2023 @08:07AM (#37673464)
Author here. Thanks for your nice comment. I added a note to say it does work with autoformatters too. Actually someone in a comment below said he or she prefers the autoformatted syntax.