Re:Ask HN: Is the Java OO model really broken and does C# pr...
by dragonwriter on Thursday October 28, 2021 @03:31PM
(#29030580)
> From OO perspective, there really isn't any difference between Java and C#
I'd say that properties, reified generics, and extension methods are all highly relevant to statically-typed, class-based OOP, and significant C# vs Java differences.
Re:Ask HN: Is the Java OO model really broken and does C# pr...
by Danao on Thursday October 28, 2021 @03:34PM
(#29030630)
Are these features (properties, reified generics, extension methods etc.) implemented in C# or in Java?
Re:Ask HN: Is the Java OO model really broken and does C# pr...
by dragonwriter on Thursday October 28, 2021 @03:40PM
(#29030730)
All three in C#, not Java (Java has properties, but they aren't the same kind of thing as C# properties.)
There are certain features (such as linq, genetics,etc) that I consider C# superior, but OOPness isn't one of them.
That said, for historical reasons, Java has a lot more emphasis on class hierarchies, etc