On 2/2/07, Douglas Philips <[EMAIL PROTECTED]> wrote:
Hmmm...stated another way:
I am proposing that the list and tuple syntax change to be consistent
with the import and export syntax.
The argument that a trailing comma "means" "the programmer forgot the
last item" in a list / tuple is
inconsistent with the deliberately explicit permissiveness of a
trailing comma in the import / export lists.
In the import / export lists such a trailing comma does not mean
"programmer forgot additional thing at the end."


Ok, now I see your point. I agree it does seem inconsistent. I don't
know the reasons for the choice to make the import/export lists work
that way, but I would guess that it's because when people use
import/export lists, they often add/remove items from the lists, and
allowing the trailing comma just makes things easier. On the other
hand, with constant lists and tuples, you're probably not going to
frequently edit the same constant list value. Am I missing something?

Cheers,
Kirsten

--
Kirsten Chevalier* [EMAIL PROTECTED] *Often in error, never in doubt
"The world is absurd and beautiful and small" -- Ani DiFranco
_______________________________________________
Haskell-prime mailing list
Haskell-prime@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-prime

Reply via email to