3 ms·
How do you reference a variable for plumbing if it doesn't have a name?
by 8note 6y ago
How do you reference a variable for plumbing if it doesn't have a name?
- inivekin 6y agoWouldn't any concatenate language fit the bill? https://concatenative.org/ https://concatenative.org/
- thepratt 6y agoWould Elixir's pipe - https://elixir-lang.org/getting-started/enumerables-and-streams.html#the-pipe-operator https://elixir-lang.org/getting-started/enumerables-and-stre... - or Haskell's function composition - https://wiki.haskell.org/Function_composition https://wiki.haskell.org/Function_composition - fit the criteria?
- oivaksef 6y agoThose would. The Elixir style feels nice. I wonder if something like that could make it into Ruby 4
- acidbaseextract 6y agoMentioned 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 https://clojure.org/guides/threading_macros