[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Thoughts on optional commas
- From: Robert Virding <robert.virding@...>
- Date: Sat, 03 Mar 2012 15:53:58 -0000 (GMT)
I would personally not like as it makes the syntax inconsistent, in this case sometimes it is mandatory and sometimes it isn't. Consistency has a lot of benefits.
Robert
----- Original Message -----
> > Personally I'd be in favor of dropping the option of no parentheses
> > from
> > function calls if I could drop all commas from the language. This
> > would break
> > compatibility with existing code but the fix would be trivial.
>
> A better compromise would be a allow removal of comma only after the
> key-value syntax
> key = value
> or (why not)
> ["key"] = value
>
> But not for array syntax
> t = { 3 2 1 'Boom' }
>
>