Hacker News new | ask | show | jobs
by 8note 1912 days ago
How do you reference a variable for plumbing if it doesn't have a name?
3 comments

Would Elixir's pipe - https://elixir-lang.org/getting-started/enumerables-and-stre... - or Haskell's function composition - https://wiki.haskell.org/Function_composition - fit the criteria?
Those would. The Elixir style feels nice. I wonder if something like that could make it into Ruby 4
Mentioned in another sub-comment, but Clojure's threading macros do this. They do it by making positional assumptions about the implicit argument: https://clojure.org/guides/threading_macros
Wouldn't any concatenate language fit the bill? https://concatenative.org/