jeudi 19 décembre 2019

Why/how does if evaluate to true?

I understand that in most programming language, following statement comparison returns true:

if something {} 

So it's equivalent to

if something == true {}

The question I have is, why or how does that statement default to assuming something = true without specifying == true?

Aucun commentaire:

Enregistrer un commentaire