News for hackers. Stuff that matters.
Re:The Current State of Java Value Types by de_watcher on Friday June 22, 2018 @02:54AM (#17371962)
> this C/C++ carry-over inconsistency of manually-boxed types and non-Objects primitive types separated from Objects

C++ allows user-defined value types that will behave like fundamental types.

And it has raw pointers/references to them.

Among all, there was a user-defined value type invented: the shared pointer (which works kinda like a GC, or exactly like a GC if you implement it and throw RAII out of the window).

Java took only the fundamental types and a shared pointer. No wonder that there are some parts missing.

There are no comments on this comment yet.