Re:PHP: md5('240610708') == md5('QNKCDZO')
by bcruddy on Monday May 04, 2015 @10:50AM
(#9486461)
Yeah but javascript has 'use strict' whereas PHP decided that the easter egg "looks like you're using the wrong language!" was more important than actually allowing a 'use strict' to force === instead of ==.
[ Parent
| on HN ]
Re:PHP: md5('240610708') == md5('QNKCDZO')
by Silhouette on Monday May 04, 2015 @01:35PM
(#9487645)
While that's true, JavaScript is still horribly error-prone because of this. The suggestion that JS would be a much better language if the == operator worked more like === in the first place is very reasonable.