4 ms·
> or, something like Elm's record updating syntax I'm confused. How is Elm's record updating syntax related to aliasing? FWIW, Elm also doesn't have a nice wa
by yakshaving_jgt 4y ago
> or, something like Elm's record updating syntax
I'm confused. How is Elm's record updating syntax related to aliasing?
FWIW, Elm also doesn't have a nice way to update nested record fields, and there are lens libraries in Elm to deal with the same problem.
- sriram_malhar 4y ago> I'm confused. How is Elm's record updating syntax related to aliasing? It isn't. The key word was "Or". In general, the point I had in mind is that mutability is a problem only in the presence of aliasing. Elm and Rust chose two different points in the mutability+aliasing space. Elm doesn't have mutation, Rust restricts mutation when there is aliasing. > FWIW, Elm also doesn't have a nice way to update nested record fields, and there are lens libraries in Elm to deal with the same problem. Thanks. I didn't know that.