3 ms·
> Well, when you pass a variable around, it doesn't and cannot change Yeah but how's that different than a const?
by GFK_of_xmaspast 10y ago
> Well, when you pass a variable around, it doesn't and cannot change
Yeah but how's that different than a const?
- iofj 10y agoIt's not, but it still has update methods. It's a const with update methods. Example for a map: x = map{"five": 5} y = x.put("six": 6} Now x is map{"five": 5} and y is map{"five": 5, "six": 6}. If any other tread was using x, it hasn't changed.