From: Trans Date: 2012-11-01T11:29:46+09:00 Subject: [ruby-core:48691] Re: [ruby-trunk - Feature #7241] Enumerable#to_h proposal --14dae934109fd17f4d04cd65ca3d Content-Type: text/plain; charset=UTF-8 Almost no one uses #each_with_object as it is. #each_with_hash is hardly better. We need a short method name. Moreover I don't think this method's behavior is really the best approach to the real use case. On Wed, Oct 31, 2012 at 7:07 PM, Nathan Broadbent wrote: > Hi everyone, > > Please see the pull request that I've opened on Rails ActiveSupport, to > add an `each_with_hash` method: https://github.com/rails/rails/pull/8088 > > @matz: Do you think this `each_with_hash` implementation could be added to > Ruby, or is it better as a Rails ActiveSupport extension? > > > Best, > Nathan > -- Sorry, says the barman, we don't serve neutrinos. A neutrino walks into a bar. Trans 7r4n5.com http://7r4n5.com --14dae934109fd17f4d04cd65ca3d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Almost no one uses #each_with_object as it is. #each_with_hash is hardly be= tter. We need a short method name. Moreover I don't think this method&#= 39;s behavior is really the best approach to the real use case.



On Wed,= Oct 31, 2012 at 7:07 PM, Nathan Broadbent <nathan.f77@gmail.com>= ; wrote:
Hi everyone,

Please see t= he pull request that I've opened on=C2=A0Rails ActiveSupport, to add an= `each_with_hash` method:=C2=A0https://github.com/rails/rails/pull/8088

@matz: Do you think this `each_with_hash` implementatio= n could be added to Ruby, or is it better as a Rails ActiveSupport extensio= n?


Best,
Nathan



--
Sorry, says = the barman, we don't serve neutrinos. A neutrino walks into a bar.
<= br>Trans <trans= fire@gmail.com>
7r4n5.com=C2=A0 =C2=A0 = =C2=A0 http://7r4n5.com<= br>


--14dae934109fd17f4d04cd65ca3d--