News for hackers. Stuff that matters.
Re:Haskell RecordDotSyntax language extension proposal (Acce... by PhineasRex on Monday September 21, 2020 @11:03AM (#24544262)
The update syntax is actually more of a `.copy` method, than a property update since it returns a new object. It's actually quite nice in that respect since it's easy to update multiple fields:

    e{lbl = val, lbl2 = val2}
Re:Haskell RecordDotSyntax language extension proposal (Acce... by pbiggar on Monday September 21, 2020 @11:19AM (#24544446)
Yes, the languages use immutable values so I understand the semantics.

I agree that's quite nice, however updating nested values is very painful.

Re:Haskell RecordDotSyntax language extension proposal (Acce... by rowanG077 on Tuesday September 22, 2020 @02:43PM (#24558288)
Afaik with the New extension you can write nested updates easily as e { a.b.c = 10 } which is I think is nice.