Re: proposal for trailing comma and semicolon

2013-05-17 Thread Johan Tibell
On Fri, May 17, 2013 at 9:17 AM, Garrett Mitchener garrett.mitche...@gmail.com wrote: Anyway, this is a paper cut in the language that has been bugging me for a while, and since there's now a call for suggestions for Haskell 2014, I thought I'd ask about it. I've also thought about this

Re: proposal for trailing comma and semicolon

2013-05-17 Thread Bardur Arantsson
On 05/17/2013 06:32 PM, Johan Tibell wrote: On Fri, May 17, 2013 at 9:17 AM, Garrett Mitchener garrett.mitche...@gmail.com wrote: Anyway, this is a paper cut in the language that has been bugging me for a while, and since there's now a call for suggestions for Haskell 2014, I thought I'd

Re: proposal for trailing comma and semicolon

2013-05-17 Thread Edward Kmett
My main concern is its a really weird corner case for the grammar to remember for tuple sections and it does have very weird grammar specification issues. I really have no objection to it for the other cases. It'd make export lists cleaner, maybe a few other cases, but how often can you really

Re: proposal for trailing comma and semicolon

2013-05-17 Thread Tillmann Rendel
Hi, Garrett Mitchener wrote: There's a weird idiom that I see all the time in Haskell code where coders put commas at the beginning of lines: data Thing = Thing { x :: Int ,y :: Int ,z :: Int ,foo :: String } ... items = [ red ,blue ,green ] (I don't think this is valid

Re: proposal for trailing comma and semicolon

2013-05-17 Thread Roman Cheplyaka
I use them sometimes, but would do that much more if they didn't require adding an extension. Roman * Edward Kmett ekm...@gmail.com [2013-05-17 15:24:27-0400] I personally use tuple sections a fair bit, though admittedly mostly for simple (,a) or (a,) cases. On Fri, May 17, 2013 at 3:01