Minero Aoki ha scritto:


> [ruby-dev:24203] $~ alternative
> 
>   Shugo Maeda proposed a new multiple assignment scheme to provide an
>   alternative of $~ variable.  His proposal is similar to the one of
>   Common Lisp:

I don't understand why we need this. Can't we just force users to write:

     idx, = "foo bar".index(/oo/)
     idx, m = "foo bar".index(/oo/)

Also, what's wrong with Regexp.last_match ?

Note that I think a stricter unpacking may be a good thing, anyway..