3 ms·
That checks out since anyone starting a new project in Java in the last 8 years. From my perspective, C# is just Java but better. I understand why Java has work
by adgjlsfhk1 5y ago
That checks out since anyone starting a new project in Java in the last 8 years. From my perspective, C# is just Java but better. I understand why Java has worked so hard not to break stuff, but it has left a language that is fundamentally broken in about 3 ways. (typesystem/generics, boxed vs unboxed types, Nullable by default)
- kaba0 5y agoHow is nullable by default fixed in c#? The typesystem is perfectly fine, as well as generics. Do note that the majority of languages does type erasure - it is not a flaw, but a feature. Boxed/unboxed I agree could take a bit of love but that is happening with Valhalla.
- adgjlsfhk1 5y agoThe type system isn't fine. Try making an ArrayList<int> or a Integer[]. Also, due to type erasure, it is impossible to check the type of a generic at runtime which can be really annoying.
- kaba0 5y ago> Try making an ArrayList<int> or a Integer[] Yes and that is due to boxing/unboxing. This is also being worked on. And while you indeed can’t check the generic type of a generic object, I really rarely see any reason for that. Like, if you have written code in any language without reflection, you can’t do that for any object and it is not a hindrance in itself.