Re:The Current State of Java Value Types
by slavapestov on Friday June 22, 2018 @12:08AM
(#17371211)
> I suspect the reason Java did it was to not surprise C++ programmers. Solely dictated by marketing, not by technical reasons.
C++ is actually more uniform than Java in this respect because it allows one to define new value types, and also allows heap-allocation of "primitive" types such as int.
C++ is actually more uniform than Java in this respect because it allows one to define new value types, and also allows heap-allocation of "primitive" types such as int.