4 ms·
Is Java planning on custom primitives analogous to c# structs, or is copy-by-value semantics still the exclusive province of the core language primitives?
by Pxtl 10y ago
Is Java planning on custom primitives analogous to c# structs, or is copy-by-value semantics still the exclusive province of the core language primitives?
- kasey_junk 10y agoProject Valhalla is supposedly bringing value types to the JVM.
- bitmapbrother 10y agoYes. Value Types, Reified Generics and Generic Specialization (e.g. List<int>) will all be in Java 10.