News for hackers. Stuff that matters.
Re:We Can Do Better Than SQL by dahfizz on Tuesday August 11, 2020 @09:07AM (#24119885)
In what language is that used? It reminds me of pipes in bash. I can see it being useful in circumstances where you have lots of function calls and fewer arguments (just like pipes), but I think it would look really ugly and hard to parse with a long arg list.
Re:We Can Do Better Than SQL by jdmichal on Tuesday August 11, 2020 @09:29AM (#24120064)
It's a common functional thing. I know F# has both `|>` and `<|` to go both directions. It also has `||>` and `|||>` variants which take two- or three-value tuples and spread them to arguments.

https://docs.microsoft.com/en-us/dotnet/fsharp/language-refe...

Re:We Can Do Better Than SQL by paublyrne on Tuesday August 11, 2020 @09:24AM (#24120026)
Elixir for one.

Yes it works best when you have one argument to pass, as the first argument is passed implicitly.

https://hexdocs.pm/elixir/Kernel.html#%7C%3E/2

Re:We Can Do Better Than SQL by Certhas on Tuesday August 11, 2020 @10:06AM (#24120364)
Re:We Can Do Better Than SQL by phaedryx on Tuesday August 11, 2020 @10:05AM (#24120352)
See also Clojure's threading macros: https://clojure.org/guides/threading_macros