you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 9 months ago (1 child)

yes but it makes it clearer to do isWearingGlasses == true

  • source
  • parent
  • hideshow 1 child comment
  • [–] 4 points 9 months ago*

    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.

  • source
  • parent