Chris Moline wrote:
> ...
> a) we could change array[i] to use the hash style. ie array{i}
> 
> b) we could swipe -> from c. so array->i and maybe hash->"key" too.
> 
> What think?? They are just suggestions
> 

Yikes! I hate "->"  much more than "<...>"
And array{i} won't go over well, either, since it has
such a different meaning already.

New Idea
========
Maybe one solution is to give "|....|" a different meaning
depending on whether it is used in an iterator or a proc?

proc{|x,y| ..... }  # x,y are kept private in the block here
proc{|x,y=3| .... } # same as a def: default values work.

3.times{|i| ..... }  # i is auto-exported here
hsh.each{|p,q| ... } # parallel assignment rules still in effect

This seems to be how they would be used, anyway.


Guy N. Hurst

-- 
HurstLinks Web Development    http://www.hurstlinks.com/
Norfolk, VA  23510            (757)623-9688 FAX 623-0433
PHP/MySQL - Ruby/Perl - HTML/Javascript