tamouse mailing lists wrote in post #1106508:

> The thing I don't like about using .tap in the way sown is that it feels
> like a side effect, but admittedly that comes from my initial belief
> about
> the intention of .tap. As with most things, we find new uses for things
> that weren't originally thought of, and I find that good for the most
> part.

I often find myself using idioms like

Klass.new.tap do
...
end

with Klass = Hash, Array, ... , and dreaming about a shortcut to 
'new.tap' like 'such_that', 'with', ...

-md

-- 
Posted via http://www.ruby-forum.com/.