Proposal: Large arrays
Marek Kozieł
develop4lasu at gmail.com
Fri Mar 27 17:10:52 PDT 2009
2009/3/24 Joe Darcy <Joe.Darcy at sun.com>:
>
> ... which is generally why I favor letting collection-like types use the
> bracket notation to get and set elements. That would eliminate the
> syntactically advantages of arrays.
>
> -Joe
>
In my opinion, supporting access throw indexes will cause that bad
style programming will increase.
2009/3/24 Mark Mahieu <markmahieu at googlemail.com>:
> 2009/3/24 Joe Darcy <Joe.Darcy at sun.com>
>>
>>
>> ... which is generally why I favor letting collection-like types use the
>> bracket notation to get and set elements.
>
>
> +1
>
>
>> That would eliminate the
>> syntactically advantages of arrays.
>
>
> Except, possibly, for 'adding' elements to them, which in many cases just
> looks like:
> fooArray[i++] = foo;
>
> Collections could conceivably go even cuter though:
> fooList += foo;
This is not valid sytanx, because this suggest merging operation
rather than addin element.
fooList[] += foo;
or
fooList[] = foo;
> and
>
> fooList -= foo;
> Mark
>
>
--
Pozdrowionka. / Regards.
Lasu aka Marek Kozieł
http://lasu2string.blogspot.com/
More information about the coin-dev
mailing list