Hey Jao
I'm not advocating for or against coercion I'm just pointing out Douglas
made a mistake on that page
He strongly implied that if(foo) and if(foo != 0) are the same. But they are
not the same and he completely avoided a discussion of why they are not the
same.
His words:
f you want the type coercion, then use the short form. Instead of:
(foo != 0)
just say
(foo)
cheers!
Angus
--
To view archived discussions from the original JSMentors Mailman list:
http://www.mail-archive.com/[email protected]/
To search via a non-Google archive, visit here:
http://www.mail-archive.com/[email protected]/
To unsubscribe from this group, send email to
[email protected]