[Haskell-cafe] Comma in the front

Neil Mitchell ndmitchell at gmail.com
Wed Jul 12 21:29:33 EDT 2006


Hi,

> Are cool kids supposed to put the comma in front like this?
Some cool kids do, some cool kids don't. Some do both, depending on their mood.

The advantage of a leading , is that now the comma's line up, and if
you want to add an item on the end of a list

  [a
  ,b
  ,c
  ]

It's just a one line change, whereas with the comma after, you'd have
to change the previous line as well - which is more effort and gives
more noise in the darcs copy.

Thanks

Neil


More information about the Haskell-Cafe mailing list