Trans
10/12/2006 6:00:00 PM
Jonas Pfenniger wrote:
> This looks really interesting. So you overloaded the - operator on
> classes to achieve the K - {} ?
I agree, interesting. I would recommend howerver using something other
then '-', b/c there is talk of using that for trait-like extensions to
class/module in future versions of Ruby. '<<' comes to mind a possilble
alternative.
K << { a:1, b:2 }
T.