matz / zetabits.com (Yukihiro Matsumoto) writes:

> |I'd like to use Perl's hash slice feature in Ruby.
> |Here is my implemetation of hash slice.
> |How about this code?
> 
> It's interesting.  The only reason hash#[] does not accept multiple
> argument for slice is consistency with array, which uses [] argument
> differently.  If consensus is made, I'd like to merge it.  But I doubt.

Given that we've got Hash#indices (OK, not the best of names,
admittedly), and given that we've got parallel assignment, I think I'd 
personally vote of consistency over Perl compatibility in this case.


Dave