3 ms·
.NET has the first class support of value types and generics. JVM is behind .NET in those aspects to varying degrees. Not as important, but still: C#, as a lan
by garganzol 4y ago
.NET has the first class support of value types and generics. JVM is behind .NET in those aspects to varying degrees.
Not as important, but still: C#, as a language, became pretty sophisticated during the recent years. It picked up quite a few functional idioms from OCaml, F#, Haskell and other functional languages, so you have pretty decent horsepower under your fingers. For instance, it can validate for possible null reference access during compile time now, thus nearly eliminating NRE (NullRefenceException) bugs in run time.
- self_awareness 4y agoTrue, C# is a nice language, but so is Kotlin. Java support for value types is being developed and has a dedicated JEP 401 [1]. Kotlin allows to use value types today, it also has nullable types. I'm not convinced if functional features are really a factor that decides what is popular or not; it can be attractive for hardcore programmers, but most of programmers are not that. [1]: https://openjdk.java.net/jeps/401 https://openjdk.java.net/jeps/401