Reply to post: Boolean variables not as True or False

'I bet Russian hackers weren't expecting their target to suck so epically hard as this'

BongoJoe
Mushroom

Boolean variables not as True or False

I find it's fun* when someone assumes that one can handle an variable of any type and treat it as a Boolean.

The trouble is that some languages assume that True is -1 and that others assume that True is non-zero or that False is zero or not-one or...

Cue arrival of someone who loosely types and is new to the language...

*another loosely typed definition

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon