Re:Bad programming ideas that only become apparent after years
by im3w1l on Sunday December 27, 2020 @05:44PM
(#25554920)
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.
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.
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.