2 ms·
> I'm not sure why you argue against giving the compiler the information it needs to do its job There's several different factors to consider. Value objects wi
by dnomad 8y ago
> I'm not sure why you argue against giving the compiler the information it needs to do its job
There's several different factors to consider. Value objects will be a valuable addition to the core JVM if only to standardize the many different approaches in place today. But even the standard value types will have strict limitations -- they will likely be immutable and it's not clear that you'll be able to easily obtain their memory address. That means many projects will still need things like code-gen. Code gen, and buffer-backed objects in general, isn't a hack at all it's a proven, battle-tested solution for many domains (finance, scientific sims, big data) that are manipulating several several gigabytes of objects in a performant manner.