From: Matthew Kerwin Date: 2014-05-06T21:29:50+10:00 Subject: [ruby-core:62415] Re: [ruby-trunk - Feature #9807] [Open] String.new with block --001a113521fceb90de04f8b9908e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > > That could be a nice solution to avoid all the Array#join and "".tap hacks for string creation. > Which hacks are these? Also, I don't see how it's different from =C2=B4"foo".tap{|s|s<<"bar"}=C2=B4 Can you give some examples? --001a113521fceb90de04f8b9908e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


>
> That could be a nice solution to avoid all the Array#join and "&q= uot;.tap hacks for string creation.
>

Which hacks are these? Also, I don't see how it's different from= =C2=B4"foo".tap{|s|s<<"bar"}=C2=B4

Can you give some examples?

--001a113521fceb90de04f8b9908e--