Skip to main content

Timeline for Make a big deal out of == true?

Current License: CC BY-SA 2.5

4 events
when toggle format what by license comment
Oct 29, 2010 at 7:22 comment added Martin Wickman +1 agreed. Its the same issue with other (scripting) languages as well. You must be explicit if you want to test for boolean true or just "true". For instance ie any non-empty string is considered == true but not === true in some languages.
Oct 19, 2010 at 11:00 history made wiki Post Made Community Wiki
Oct 19, 2010 at 5:55 comment added Matthew Flaschen bool b; only initializes to false when b is a field. You must initialize local variables explicitly.
Oct 19, 2010 at 3:16 history answered asbestossupply CC BY-SA 2.5