3 ms·
It's still very cumbersome, especially compared with state of the art. You may want to look at how it works in Erlang.
by dozzie 11y ago
It's still very cumbersome, especially compared with state of the art. You may want to look at how it works in Erlang.
- jnbiche 11y agoErlang's binary matching is beyond awesome, and OCaml has a pretty good implementation of it as well (Bitstring) [1]. Cool thing about Elixir is of course that awesome Erlang binary handling is available and very easy to use. Lots of people have been lobbying for something like this in Rust, given its low-level orientation, but there's been resistance to the idea from the core devs, who want it to be done using syntax extension. 1. https://rwmj.wordpress.com/2010/02/03/on-the-awesomeness-of-ocaml-bitstring/ https://rwmj.wordpress.com/2010/02/03/on-the-awesomeness-of-...