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.
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.