2 ms·
I think it's fair to say that the recent Bouncy Castle security bug happened because Java lacks operator overloading. With overloaded [], an accidental use of i
by im3w1l 6y ago
I think it's fair to say that the recent Bouncy Castle security bug happened because Java lacks operator overloading. With overloaded [], an accidental use of indexOf would have been obvious.
https://www.bleepingcomputer.com/news/security/bouncy-castle-crypto-authentication-bypass-vulnerability-revealed/ https://www.bleepingcomputer.com/news/security/bouncy-castle...
So I think [] has a place for containers. Overloading * and -> for smart pointers also makes things look a lot nicer. I think the more advanced indexing modes of numpy (and by extension tensorflow) were a mistake though. Those create weird edge cases and would have been much better of as named methods.