3 ms·
Sometimes less is more. Not implementing every fancy feature under the sun might be a bonus and keeps the language clean. I know I never managed to like generi
by Tichy 13y ago
Sometimes less is more. Not implementing every fancy feature under the sun might be a bonus and keeps the language clean.
I know I never managed to like generics in Java. Don't know C#, though.
- pjmlp 13y agoJava generics are an example on how not to do it, but it does not mean all generic implementations are like Java's.
- szalansky 13y agoHope you write some further explanation for your statement, because so far it looks like part of this c++ vs. java flame.
- pjmlp 13y ago- Type erasure. Going the .NET way would be a better approach on my opinion; - Lack of type definitions. If it was possible to declare types in Java, the generic declarations wouldn't need to be so monstrous; - The common co-variance/contra-variance issues with the generic types; - Lack of support for builtins; - No way to specialize generic algorithms for specific types
- gnuvince 13y agoLanguages like SML and OCaml are pretty clean, pretty simple and have an awesome parametric polymorphism system.
- Tichy 13y agoI'll put them on my "to be checked out" list.