[ruby-core:62415] Re: [ruby-trunk - Feature #9807] [Open] String.new with block

From: Matthew Kerwin <matthew@...>
Date: 2014-05-06 11:29:50 UTC
List: ruby-core #62415
>
> 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?

In This Thread

Prev Next