On Mar 25, 2007, at 12:10 PM, Theodore H. Smith wrote:
> Anyone here think it woudl be a good idea if RB supported array and
> dictioanry syntax, like this:
>
> Dict["value"] = key
>
> It's done this way in quite a few languages.
> C++
> JavaScript
> Flash
>
> probably some more languages I haven't looked into enough.
>
> I think this:
>
> Dict["value"] = key
>
> looks better than this:
>
> Dict("value") = key
>
> or this:
>
> Dict.Value("value") = key
>
> Also, array accessing should be the same way.
>
> Arr[1] = 10
> Arr[2] = 12
>
> Instead of:
>
> Arr(1) = 10
> Arr(2) = 12
>
> This way, we can tell apart array access from function calls.
This is not a bad idea, though stare decisis probably precludes it
from happening. What would be the choice for control arrays, then,
() or []?
Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>