ezyang’s blog

the arc of software bends towards understanding

Inessential Guide to data-accessor

data-accessor is a package that makes records not suck. Instead of this code: newRecord = record {field = newVal} You can write this: newRecord = field ^= newVal $ record In particular, (field ^= newVal) is now a value, not a bit of extra syntax, that you can treat as a first-class citizen. I came […]

  • April 14, 2010