From: Dan Connelly Date: 2012-06-21T08:44:03+09:00 Subject: Re: Benchmark obsession? Jan E. wrote in post #1065412: > If you use string interpolation for clarity, that's perfect. I fully > agree with you. The same goes for inject (with "building up an object" I > actually meant "building up the aggregate value" -- so there's no > disagreement on that). If I have a choice between writing: puts "a = #{a}\n"\ "b = #{b}" and $stdout << "a = " << a << "\nb = " << b << "\n" which is clearer? C++ fans might prefer the second, while I prefer the first. In any case, I'm glad to hear the first happens to be faster, as well :). -- Posted via http://www.ruby-forum.com/.