Re:Linus: bool is dangerous in C if you don't understand it
by tel on Sunday September 01, 2013 @12:04PM
(#6310879)
Because the properties of other types might not translate. It's probably okay with integer types since (a + b) => (a OR b) and (a * b) => (a AND b) as long as you stay away from upper bounds.
But some semantic maps are less great. Having your compiler help you to ensure you're not implicitly mixing up bad maps can be helpful.
But some semantic maps are less great. Having your compiler help you to ensure you're not implicitly mixing up bad maps can be helpful.