
09-10-2009, 12:34 AM
|
|
Banned
|
Join Date: Feb 2007
Posts: 1,002
|
|
|
Depending on the dynamic typing system in place, 1 and 0 (stored as integers) can easily mean different things than true and false (stored as bits).
(true + true) is only possible because it dynamically changes true to 1 when you try to perform a numerical operation (addition).
It's generally good to stick to the construct utilized for a specific purpose because of the optimizations that come along with it; and even if there aren't currently optimizations, it'll suck if the optimizer gets updated and having to edit all your scripts around to get the new optimizations. |
|
|
|