News for hackers. Stuff that matters.
Re:F# Pipeline Operator in JavaScript with Babel by TheAsprngHacker on Tuesday February 04, 2020 @03:32PM (#22240607)
Why do people credit the pipe operator to F#? OCaml has it too, and F# is based on OCaml. Did the pipe operator get added to F# first? (The OCaml docs say that the pipe operator first appeared in OCaml 4.01 [1], and I can't find out when it got added to F#.)

[1] https://caml.inria.fr/pub/docs/manual-ocaml/libref/Stdlib.ht...

Re:F# Pipeline Operator in JavaScript with Babel by vrotaru on Tuesday February 04, 2020 @05:04PM (#22241536)
It appeared first in F#. The 4.01 version is quite recent actually.

F# was based on 3.xx, or maybe, even, 2.xx OCaml.

https://docs.microsoft.com/en-us/archive/blogs/dsyme/archeol...

Re:F# Pipeline Operator in JavaScript with Babel by tpetricek on Tuesday February 04, 2020 @05:01PM (#22241506)
The history of how the pipe operator got into F# is documented here: https://blogs.msdn.microsoft.com/dsyme/2011/05/17/archeologi...
Re:F# Pipeline Operator in JavaScript with Babel by rattray on Tuesday February 04, 2020 @05:54PM (#22242003)
Sounds like the idea came up April/May 1994 for F# then. Not sure when the feature landed.

Was added to OCaml 2013-09-12[0]

[0] https://ocaml.org/releases/4.01.0.html

Re:F# Pipeline Operator in JavaScript with Babel by no_wizard on Tuesday February 04, 2020 @07:30PM (#22242770)
Attribution in most cases is given to where the person first learned of the concept, not per se, the historical accuracy of who came first with the concept.

After all, it should rightfully be attributed to the Isabelle/ML programming lanaguage[0][1]

[0]https://isabelle.in.tum.de/ [1]https://docs.microsoft.com/en-us/archive/blogs/dsyme/archeol...

Re:F# Pipeline Operator in JavaScript with Babel by markandrewj on Tuesday February 04, 2020 @04:48PM (#22241369)
I was thinking the same thing, although it would be useful to have a pipeline operator in Javascript. My first thought would be UNIX when I think of pipes, not F#.
Re:F# Pipeline Operator in JavaScript with Babel by wendyshu on Tuesday February 04, 2020 @04:15PM (#22241066)
Yup