Seeking a definitive set of guidelines regarding automatic typecasting and when it occurs. I am in the process of developing some rules for new developers, an example being:
90 > '100' // comparison as integers
'90' > 100 // comparison as integers
'90' > '100' // comparison as strings
The best explanation I could come up with is simply "because" :)