4 ms·
The main selling point is the ability to chain calls foo.do_this(bar).do_that(baz) instead of do_that(do_this(foo, bar), baz)
by eps 4y ago
The main selling point is the ability to chain calls
foo.do_this(bar).do_that(baz)
instead of
do_that(do_this(foo, bar), baz)
- pritambaral 4y agoThat is easily handled by macros without sacrificing semantic clarity: do_this(foo, bar) |> do_that(baz) Or an explicit version: do_this(foo, bar) |<> do_that(<>, baz) (Yes, this is a bastardization of Elixir's pipe and some Lisps' arrow macros.)