Hacker News new | ask | show | jobs
by aeruder 1067 days ago
I really like how well the pattern-matching system in Elixir works with decoding binary data. It can even extract on non-byte boundaries.
1 comments

What’s fantastic is you can reference an unpacked variable immediately within the bitstring.

This is super handy if you have variable length sections with a header, such as a DNS packet, saving having to do it in two operations.