I'm new to elm, and was experimenting with updating records today. Noticed something that seemed a bit strange - the elm compiler doesn't accept updating a record where you specify the record you want to update with `{ myRecord.myNestedRecord | ... }` (syntax error).
I've attached an example file displaying this behaviour. `example5` and `example6` don't compile. What I'm wondering is, should they compile based on the elm language specification? And, for example 5, when you want to update a nested record, is that nested syntax a good way to go about it, or is there a neater way?
For reference, this is the error I get when compiling:
-- SYNTAX PROBLEM ----------------------------------------------------- Test.elm
I ran into something unexpected when parsing your code!
24| example6 = { myRecord.user | name = "John" }
^
I am looking for one of the following things:
"'"
"|"
an equals sign '='
more letters in this name
whitespace
Detected errors in 1 module.