Values & References12 / 16
Up next

let on a class binds the reference

class Counter { var value = 0 }
// let fixes WHICH object c points to, not the object's contents
let c = Counter()
c.value = 7
print(c.value)
What you're solving

the instance is still mutable