Re:Why I Use Elm in 2023
by eweise on Tuesday May 23, 2023 @11:22AM
(#36045615)
I like Elm but there are some things that would make life easier and not add much cognitive overhead, like updating nested records for instance. The current syntax wouldn't even need to change.
[ Parent
| on HN ]
It’s even worse as you cannot even update a record if it has a qualified name.
{ Module.record | field = value }
is not allowed. So either, you need to import record unqualified, or you need a let construction.I somewhat get the restriction on nested updates (though I don’t agree with it), but I absolutely do not understand this.