4 ms·
I miss the F# pipe operator (https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/functions/#pipelines https://learn.microsoft.com/en-us/dotnet/fs
by hawk_ 1y ago
I miss the F# pipe operator (https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/functions/#pipelines https://learn.microsoft.com/en-us/dotnet/fsharp/language-ref...) in other languages. It's so natural to think of function transform pipelines. In other languages you have to keep going to the left and prepend function names, and to the right to add additional args, parens etc ...
- jraph 1y agoYou'll be able to use it in PHP 8.5 :-) https://stitcher.io/blog/pipe-operator-in-php-85 https://stitcher.io/blog/pipe-operator-in-php-85
- lo_zamoyski 1y agon.b. pipe operators also exist in various forms in other languages. OCaml, Elixir, Clojure, Haskell...
- hawk_ 1y agoOh yes I didn't mean F# is the only one. Just that the other ones I am likely to work with i.e. C++, Java and Python don't have it.
- mrbananagrabber 1y agoI've had to migrate to mostly Python for my work, and this is the thing I miss the absolute most from R (and how it works so seamlessly with the tidyverse)
- deleted 1y ago[deleted]