4 ms·
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
by TheAsprngHacker 7y ago
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.html https://caml.inria.fr/pub/docs/manual-ocaml/libref/Stdlib.ht...
- wendyshu 7y agoYup
- markandrewj 7y agoI 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#.
- tpetricek 7y agoThe history of how the pipe operator got into F# is documented here: https://blogs.msdn.microsoft.com/dsyme/2011/05/17/archeological-semiotics-the-birth-of-the-pipeline-symbol-1994/ https://blogs.msdn.microsoft.com/dsyme/2011/05/17/archeologi...
- rattray 7y agoSounds 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 https://ocaml.org/releases/4.01.0.html
- vrotaru 7y agoIt 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/archeological-semiotics-the-birth-of-the-pipeline-symbol-1994 https://docs.microsoft.com/en-us/archive/blogs/dsyme/archeol...
- no_wizard 7y agoAttribution 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/ https://isabelle.in.tum.de/ [1]https://docs.microsoft.com/en-us/archive/blogs/dsyme/archeological-semiotics-the-birth-of-the-pipeline-symbol-1994 https://docs.microsoft.com/en-us/archive/blogs/dsyme/archeol...