2 ms·
I like how Erlang handles binary and bitstring data. Extremely useful if you're doing any sort of protocol implementation.
by non-entity 6y ago
I like how Erlang handles binary and bitstring data. Extremely useful if you're doing any sort of protocol implementation.
- Jtsummers 6y agoSo many programs I've written would have been easier with Erlang's binaries and pattern matching. A lot of what I've done has boiled down to parsing and transforming binaries from one format to another. I've made a few POCs for work in the past (that I couldn't have convinced them to use no matter what, only C/C++/C#/Python were used) that demonstrated a much simpler version of core program logic because of those two features. The code was often 1/10th the size (if not smaller), clearer, and more extendable. And this wasn't just because I was writing it for a second (or third) time. The code in the other languages was good, clean code as well. It's just harder in those languages to express the same things as concisely.