3 ms·
> Additionally C# 7.x has safe stack allocation, spans, references to stack allocated data. How much of those are the direct result of having value types in th
by apta 8y ago
> Additionally C# 7.x has safe stack allocation, spans, references to stack allocated data.
How much of those are the direct result of having value types in the language?
As far as the other features you mentioned, it would be nice to have them in the JVM as well.
- pjmlp 8y agoAll of them. They were already available in other languages like Modula-3 and Oberon(-2) before Java came to be, but Java team decided it was too complicated for their target audience. Just like Sun was religiously against AOT, a feature only available in commercial third party JDKs, they also believed it was a matter of making the JIT good enough for escape analysis. Thankfully the .NET team had other beliefs.