Hacker News new | ask | show | jobs
by valarauca1 3678 days ago
>Personally, I disagree. Whilst it is easy to make mistakes while writing bit-fiddling code

Luckily Rust gives you the #[test] directive so the next line after abstracting away the bit-flipping details you can provide it works correctly.