2 ms·
>There's no pattern matching like erlang pattern matching Really? I'd imagine Haskell's is even better being lazy. Not to mention the sort of things Prolog is
by codewright 14y ago
>There's no pattern matching like erlang pattern matching
Really? I'd imagine Haskell's is even better being lazy.
Not to mention the sort of things Prolog is capable of.
Thinking about making a game recently, current choice for backend will probably end up being Clojure or Erlang.
- fusiongyro 14y agoErlang does have binary patterns on the both of those. Of course you could put something together (I'd especially be curious to see what you could come up with in Prolog) but the go-to solutions in Haskell are binary and cereal, which lack the terse clarity. Beyond that I'd say they're pretty par, maybe a slight advantage to Haskell for the under-utilized view patterns extension.
- rwmj 14y agoI liked Erlang's binary patterns so much I copied them for OCaml: https://code.google.com/p/bitstring/ https://code.google.com/p/bitstring/