Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If an object is truly immutable, its object identity shouldn't matter in the vast majority of cases, and so it should be okay to just copy the whole thing, instead of passing around references to it.

Unfortunately, the legacy Java semantics of == means that they can't do this proactively. But didn't Java get opt-in value types recently?



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: