Are they though? Maybe they are inputs that haven’t been sanitised but the language has two kinds of equals and is you use the double equals then it tries to coerce it for you. Lol that with would be silly!
The compiler/interpreter/etc will convert it to the most efficient implementation regardless of what you the human type. If you’re used to the if [boolean] convention use that, if you’re used to if [boolean] == true use that, it does not matter except to style commissars.
True power comes from not using the power.
I can stand and piss… but for many reasons I prefer to sit.
For me the algorithm is “if(wearing_glasses == True and is_brightly_lit == True): stand; else: sit”.
Your variables are already booleans, so you can just write:
if wearing_glasses and is_brightly_litAre they though? Maybe they are inputs that haven’t been sanitised but the language has two kinds of equals and is you use the double equals then it tries to coerce it for you. Lol that with would be silly!
lol what a funny lamguage design horror story. I’m sure glad it’s not real
yes but it makes it clearer to do
isWearingGlasses == trueThe compiler/interpreter/etc will convert it to the most efficient implementation regardless of what you the human type. If you’re used to the
if [boolean]convention use that, if you’re used toif [boolean] == trueuse that, it does not matter except to style commissars.