Eregon (Benoit Daloze) [2012-06-25 12:33]:
> But at the same time, this is clearly a specialization of
> Hash.new with a block, which loses some flexibility (you can not
> use the key for example).
why not? you can yield the key to the block.

> I'm curious what others think of it.
i like it and i use it occasionally:

<http://blackwinter.github.com/ruby-nuggets/Nuggets/Hash/NestMixin.html>
<https://github.com/blackwinter/ruby-nuggets/blob/master/lib/nuggets/hash/nest_mixin.rb>
<https://github.com/blackwinter/ruby-nuggets/blob/master/spec/nuggets/hash/nest_spec.rb>