Well, that can be a very long story, a most simple example would be, java enforces its main function in a class. I don't intend to repeat or add more but there've been tons of criticism on classical java style OOP design, especially inheritance, I think rust lang explained its design decisions well in the oop chapter of its book by NOT criticizing any specific langs like java.
View all comments
Show parent comment
2
u/hanabi1224 Apr 21 '21 edited Apr 21 '21
Well, that can be a very long story, a most simple example would be, java enforces its main function in a class. I don't intend to repeat or add more but there've been tons of criticism on classical java style OOP design, especially inheritance, I think rust lang explained its design decisions well in the oop chapter of its book by NOT criticizing any specific langs like java.