> The one-sided pattern matching seems to be a peculiarity of Elixir.
And Erlang. And Haskell. And OCaml. And F#. And...
As far as I understand, only Prolog has unification (out of more-or-less used/known languages). And in languages that require (rather awkward and verbose) workarounds for this functionality, it's hard to see the immediate value of unification.
And Erlang. And Haskell. And OCaml. And F#. And...
As far as I understand, only Prolog has unification (out of more-or-less used/known languages). And in languages that require (rather awkward and verbose) workarounds for this functionality, it's hard to see the immediate value of unification.