Re:Apple Watch is encoding each frame as PNG
by lionet on Saturday December 05, 2015 @11:28PM
(#10684408)
You are correct. But in FP, we understand immutability differently, so it becomes very painful to watch structural equivalence of the following variables:
class Foo { var x = 0 }
let a = [Foo(), Foo(), Foo()]
var b = a
a[0].x = 1
var c = b // [0].x == 1 ;(
let d = a // [0].x == 1 ;(