I find the prefix more readable, in both situations.

I read from left to right, and it is clearer when the most semantically 
important symbol comes as early as possible in that left to right progression.

Allen


On Apr 3, 2012, at 2:32 PM, Erik Arvidsson wrote:

> FWIW, Python and Ruby uses prefix (the * operator). Java and C++11
> uses prefix ... (actually suffix on the type).
> 
> My vote is for prefix.
> 
> 
> On Tue, Apr 3, 2012 at 14:08, Russell Leggett <[email protected]> 
> wrote:
>> Second...
>> 
>> In fact, I think I've even written a few code examples accidentally using
>> that form because it was just more natural.
>> 
>> 
>> On Tue, Apr 3, 2012 at 4:16 PM, Mark S. Miller <[email protected]> wrote:
>>> 
>>>     foo(a, b, ...rest)
>>> 
>>> vs
>>> 
>>>     foo(a, b, rest...)
>>> 
>>> Which is clearer?
>>> 
>>> ES6 has currently agreed on the first. English and Scheme agree on the
>>> second.
>>> 
>>> This question applies to both
>>> <http://wiki.ecmascript.org/doku.php?id=harmony:rest_parameters> and
>>> <http://wiki.ecmascript.org/doku.php?id=harmony:spread>.
>>> 
>>> --
>>>     Cheers,
>>>     --MarkM
>>> 
>>> _______________________________________________
>>> es-discuss mailing list
>>> [email protected]
>>> https://mail.mozilla.org/listinfo/es-discuss
>>> 
>> 
>> 
>> _______________________________________________
>> es-discuss mailing list
>> [email protected]
>> https://mail.mozilla.org/listinfo/es-discuss
>> 
> 
> 
> 
> -- 
> erik
> _______________________________________________
> es-discuss mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/es-discuss
> 

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to