[suggestion] using expression in record update
Closed this issue · 1 comments
Warry commented
So much progress here ! Congrats !
One of the most annoying thing in Elm is the impossibility to update all records references, for instance the following won't compile :
{ Module.record.value | field = newValue }
I understand that it would be annoying to add a special case in the parser only for update, but what if it just supported expressions ?
{ Module.makeRecordFn makingArgument | field = newValue }
❤️
Warry commented
oops... just noticed that you didn't went for the pipe notation. carry on !
user: User
user = { ...noah, name: "Noah" }