Comment on Erlang/OTP 27 HighlightsparentComments−neonsunset2yYou do realize that Rust, C#/F#, Kotlin/Scala, now Java to an extent, pretty much all FP and many other languages have extensive pattern matching support?−adregan2yIn fairness, it's doing a bit more than "just" pattern matching. It's very similar to the `with` expression in elixir: https://hexdocs.pm/elixir/1.16.3/Kernel.SpecialForms.html#wi...You can use it to execute a series of functions returning `either`-ish tuples and build up a railway oriented program.−metadat2yIt goes beyond your typical pattern matching, check out the link in my first post if you're curious to learn!
Comments
You do realize that Rust, C#/F#, Kotlin/Scala, now Java to an extent, pretty much all FP and many other languages have extensive pattern matching support?
In fairness, it's doing a bit more than "just" pattern matching. It's very similar to the `with` expression in elixir: https://hexdocs.pm/elixir/1.16.3/Kernel.SpecialForms.html#wi...
You can use it to execute a series of functions returning `either`-ish tuples and build up a railway oriented program.
It goes beyond your typical pattern matching, check out the link in my first post if you're curious to learn!