Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There is an extension that lets you do this now (OverloadedRecordDotSyntax) but truthfully I think it’s a really bad idea. The (.) operator already has a very concrete meaning in Haskell, and record dot notation means that you suddenly need to care about the specific details of how values are calculated. Field accessor functions are much better imo even if they seem a little odd.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: