6 ms·
Yes, Erlang patterns are non-linear, Haskell has view patterns. Neither are more powerful than the other. They are just different. Erlang non-linear patterns f
by nox_ 13y ago
Yes, Erlang patterns are non-linear, Haskell has view patterns. Neither are more powerful than the other. They are just different.
Erlang non-linear patterns fit more with the semantics of match where an already bound name isn't shadowed, view patterns fit well into Haskell because of the ensured purity.