News for hackers. Stuff that matters.
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 ==.
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.
Re:PHP: md5('240610708') == md5('QNKCDZO') by samspot on Wednesday May 06, 2015 @10:34AM (#9498891)
I don't think strict mode affects == vs. === Best bet is to use a linter to catch that.