Re:Why MD5('240610708') is equal to MD5('QNKCDZO')?
by BrendanEich on Thursday April 13, 2023 @11:16AM
(#35556777)
You're mistaken about == in the first ten days Mocha implementation. If types differed, its result was false. I changed it after that, due to internal Netscape requests from the LiveWire team to make it sloppy. Their use cases included comparing HTTP headers reflected as strings to numbers such as 401, and database fields containing numeric strings to numbers. I've written about this many times, e.g., https://twitter.com/BrendanEich/status/1641067035391332354.
[ Parent
| on HN ]
There are no comments on this comment yet.