Quote:
Originally Posted by Damix2
Guess that one is preference, I've always used 0 and 1s instead of booleans where I could. Though it is noted and I appreciate the reply.
|
You're saying that you prefer using magic numbers instead of true booleans? Using true/false is a widely accepted convention in computer science.
Extraneous information:
There's no real reason why 0 is false and 1 is true. It just happened; that's why it's good practice to use true/false. Apart from better communicating your intention, Stefan might go mad and change the engine so that the number 7 is true and number 3 is false.