proposal for trailing comma and semicolon
Ian Lynagh
igloo at earth.li
Mon Aug 19 18:42:32 CEST 2013
On Tue, Aug 13, 2013 at 09:47:49PM +0100, Simon Marlow wrote:
> On 17/05/13 20:01, Ian Lynagh wrote:
>
> >I'd be in favour of allowing a trailing or leading comma anywhere that
> >comma is used as a separator. TupleSections would need to be changed or
> >removed, though.
>
> The type constructors for tuples look like (,,,), so they would have
> to be a special case.
Ugh, true.
> I'd much rather leave tuples out of it: the
> precise number of commas in a tuple is significant.
It would be rather unpleasant to have
[1,2,3,] :: [Int]
(1,2,3,) :: Int -> (Int, Int, Int, Int)
Thanks
Ian
More information about the Haskell-prime
mailing list