PROPOSAL: Include record puns in Haskell 2011

Ian Lynagh igloo at earth.li
Wed Feb 24 13:23:39 EST 2010


On Tue, Feb 23, 2010 at 07:07:30PM -0800, Iavor Diatchki wrote:
>
> I'd like to propose that we add record punning to Haskell 2011.
> 
> Thoughts, objections, suggestions?

I have a feeling I'm in the minority, but I find record punning an ugly
feature.

Given
    data T = C { f :: Int }
we implicitly get
    f :: T -> Int
which punning shadows with
    f :: Int
whereas I generally avoid shadowing completely.


Thanks
Ian



More information about the Haskell-prime mailing list