From: Benoit Daloze Date: 2010-03-03T16:35:34+09:00 Subject: [ruby-core:28436] Re: [Bug #1893] Recursive Enumerable#join is surprising --0016364265a3ea47a90480e086ef Content-Type: text/plain; charset=ISO-8859-1 On 3 March 2010 06:42, Jeremy Kemper wrote: > Issue #1893 has been updated by Jeremy Kemper. > > > Hi Yusuke, > > Agreed that Enumerator#to_ary would resolve this. > > Plus, I think it's better behavior: recursive join should use implicit > (to_ary) not explicit (to_a) coercion. We wish to join array-like objects, > not convert our objects to arrays then join. > ---------------------------------------- > http://redmine.ruby-lang.org/issues/show/1893 > > ---------------------------------------- > http://redmine.ruby-lang.org > > Hi, Sure I would agree using to_ary: http://groups.google.com/group/ruby-talk-google/browse_thread/thread/26562ef28368a582/927899a3fb65b962?lnk=gst&q=array%23join+usinf+to_a# Thanks to have reported the issue :) --0016364265a3ea47a90480e086ef Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On 3 March 2010 06:42, Jeremy Kemper <redmine@ruby-lang.org= > wrote:
Issue #1893 has been updated by Jeremy Kemper.


Hi Yusuke,

Agreed that Enumerator#to_ary would resolve this.

Plus, I think it's better behavior: recursive join should use implicit = (to_ary) not explicit (to_a) coercion. We wish to join array-like objects, = not convert our objects to arrays then join.
----------------------------------------<= br> http://redmine.ruby-lang.org/issues/show/1893

----------------------------------------
http://redmine.r= uby-lang.org

Hi,

Sure I would agree using to_ary: = http://groups.google.com/group/ruby-talk-google/browse_thread/threa= d/26562ef28368a582/927899a3fb65b962?lnk=3Dgst&q=3Darray%23join+usinf+to= _a#

Thanks to have reported the issue :)
--0016364265a3ea47a90480e086ef--