From: Clay Trump Date: 2012-08-13T12:46:52+09:00 Subject: [ruby-core:47143] Re: [ruby-trunk - Feature #6847] Hash#extract --bcaec529955d37160304c71d8b7a Content-Type: text/plain; charset=ISO-8859-1 Oh my, what a disaster. I wonder who made the crazy decision that hash slice would returned a slice of the hash and slice! would return... the receiver and not the slice of the hash. Especially since Array slice and slice! return the same values... So, sorry Michael, I was confused. Anyways, I think the most important is `slice` and that's the correct name too, and it might be nice to have a mutating version too. I'd name it slice! and too bad for ActiveRecord, but that might not be the best way to go. -- --bcaec529955d37160304c71d8b7a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Oh my, what a disaster. I wonder who made the crazy decision that hash slic= e would returned a slice of the hash and slice! would return... the receive= r and not the slice of the hash. Especially since Array slice and slice! re= turn the same values...

So, sorry Michael, I was confused. Anyways, I think the most important = is `slice` and that's the correct name too, and it might be nice to hav= e a mutating version too. I'd name it slice! and too bad for ActiveReco= rd, but that might not be the best way to go.

--
<lay trum/>

--bcaec529955d37160304c71d8b7a--