by alexbowe · 13y ago · 0 comments
Erlang has a beautiful language feature for this: http://www.erlang.org/doc/programming_examples/bit_syntax.ht... It uses pattern matching to unpack variable length fields in a bitvector. So beautiful.
Edit: Check arianvanp's post above https://news.ycombinator.com/item?id=5506902
No comments yet.