3 ms·
I really like how well the pattern-matching system in Elixir works with decoding binary data. It can even extract on non-byte boundaries.
by aeruder 3y 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.
- J_tt 3y agoWhat’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.