Re:How I Start: Haskell
by ufo on Monday November 17, 2014 @12:32PM
(#8619261)
Pointers being symmetric was the point of his analogy. The asymmetry shows up when the setter is pure, returning a new version of the record instead of mutating it (as is the case in Haskell).
A getter is simple:
As is an impure setter: But a non-mutating setter is a bit more work: