News for hackers. Stuff that matters.
Re:Not Growing a Language by zokier on Saturday April 03, 2021 @04:05PM (#26684277)
But any class can inherit that Number, there is nothing enforcing that the subclass is particularly number-like. You can do just stuff like

    class MyString extends Number
and you get access to operator overloads. Only thing that makes this annoying is Javas lack of multiple inheritance, but that is pretty minor thing.
Re:Not Growing a Language by hinkley on Saturday April 03, 2021 @06:21PM (#26685270)
There is a level of stupid that is deniable, and a level that is not. MyString extends Number is going to lead more swiftly to words with your coworkers.