> we have to use if to convert bools into bits.
What if you can use the unsafe package?
What if you can use the unsafe package?
In general, I try to to avoid using unsafe as much as possible. Not because I worry that it's "unsafe" or prone to errors (I'm experienced in C, C++, and assembly), but because it makes the code harder to read, and I don't think my coworkers would appreciate that. ;)