5 ms·
Pattern Matching makes it easy to write small, understandable code The Concurrency Model is simple to the point where creating a whole pubsub system to handle
by bnchrch 9y ago
Pattern Matching makes it easy to write small, understandable code
The Concurrency Model is simple to the point where creating a whole pubsub system to handle events, push out notifications, and handles backpressure can be done in < 100 lines with no additional datastores or frameworks.
Finally the pipe operator is like C#'s LINQ statements but with so much more power and flexibility, hard to explain but I highly recommend cracking open that book on your nightstand!
- Rovanion 9y agoThe Elixir pipe operator |> is the equivalent of the Clojure thread first macro ->, right?
- kornish 9y agoYep, exactly. https://elixir-lang.org/getting-started/enumerables-and-streams.html#the-pipe-operator https://elixir-lang.org/getting-started/enumerables-and-stre...
- nilved 9y agoWhich is to say it's equivalent to function composition.
- ams6110 9y agoYes it's syntactic sugar and for me personally harder to read but YMMV.