What happened to the "mutable struct" debate?

Brian Goetz brian.goetz at oracle.com
Fri Jan 23 04:42:47 UTC 2015


> Stating the obvious, from a newcomer's perspective, ints are mutable.

Except they're not :(

ints are immutable; you can't change the value 3.  Two threes are the 
same int, regardless of where they are stored.  You can have a *mutable* 
cell that holds an int; similarly, you can have a mutable cell that 
holds a value.



More information about the valhalla-dev mailing list