deep record update

2011-09-19 Thread Barney Hilken
All this talk about records got me thinking. I don't really like the current syntax for record update (because it looks too much like function application) but here is an extension to it which might be useful. If you use nested records, many languages allow you to update the inner records

Re: deep record update

2011-09-19 Thread Edward Kmett
If you use lenses you can do this today with no real need to adulterate the parser. setL (l2 . l1) x rec This goes one step further as it can be written point free so you don't even have to give rec a name if you don't want to. ;) -Edward On Mon, Sep 19, 2011 at 9:09 AM, Barney Hilken