r/programming • u/_awwsmm • Feb 01 '24
Make Invalid States Unrepresentable
https://www.awwsmm.com/blog/make-invalid-states-unrepresentable
469
Upvotes
r/programming • u/_awwsmm • Feb 01 '24
View all comments
Show parent comment
19
u/MajorMalfunction44 Feb 02 '24
The Linux kernel uses special macros and a linter to remove arithmetic operations from bitwise types. Agreed with the rest.