Hacker News new | ask | show | jobs
by dcsommer 1564 days ago
Agreed this would be a nice addition.

https://docs.rs/bitmatch/latest/bitmatch/ works nicely but only for a single integer.

https://internals.rust-lang.org/t/pre-rfc-binary-patterns/89... didn't get much discussion but seems the closest to Erlang.