3 ms·
> I mean, both have garbage collection, both are JITed, both have nearly the same feature set. There's one big difference in the feature set: unless things hav
by cesarb 4y ago
> I mean, both have garbage collection, both are JITed, both have nearly the same feature set.
There's one big difference in the feature set: unless things have changed very recently, the JVM lacks value objects.
- self_awareness 4y agoValue objects (and more) are a part of Project Valhalla: https://openjdk.org/projects/valhalla/ https://openjdk.org/projects/valhalla/, and Kotlin allows using them today, although with some hacky annotations.
- kroltan 4y agoThat is very true, but C# has had value types since its inception, so a lot of tooling exists to deal with them, both in the language and in third party code (libraries and engines)