3 ms·
Is there a TL:DR version of this?
by cosmosgenius 9y ago
Is there a TL:DR version of this?
- _old_dude_ 9y agoIt's a patch to Java Virtual Machine spec in order to introduce value types, think like an immutable struct with methods attached. I suppose that at some point in the future, the Java language spec will be updated to let us play with that.
- zyx321 9y agoJava 10 may support defining your own primitives. e.g. You could define a tuple-like type that will get passed and stored by value. Now you can make a billion member Array of 'em and not incur the speed and memory overhead you'd get from using Objects that need to be tracked, dereferenced, garbage-collected, etc...