From: dblack@... Date: 2006-11-21T00:07:14+09:00 Subject: Re: #returning and #tap Hi -- On Mon, 20 Nov 2006, spooq wrote: >> We're probably at the agree-to-disagree stage, but hopefully it's been >> of interest to both of us and anyone interested in the topic. > > We probably are at that stage, but the journey was definitely > worthwhile, so thanks :) I'll just add that I now see exactly what you mean about mixing the two techniques. And definitely -- one would want to be very careful and selective. One variation on the theme might be cases where in-place operations saved some memory, even if you end up throwing the object away; so the dual fact that the end result was a different object, *and* one of the intermediate objects had in-place stuff done to it, might be OK. David -- David A. Black | dblack@rubypal.com Author of "Ruby for Rails" [1] | Ruby/Rails training & consultancy [3] DABlog (DAB's Weblog) [2] | Co-director, Ruby Central, Inc. [4] [1] http://www.manning.com/black | [3] http://www.rubypowerandlight.com [2] http://dablog.rubypal.com | [4] http://www.rubycentral.org