From: Jacob Fugal Date: 2006-05-02T04:56:09+09:00 Subject: Re: from block to code (also: how to get the bindings of a block) On 5/1/06, chiaro scuro wrote: > Eric, how would you do it? > > recipe "breakfast" do > eggs = 2, :big > bacon = 3 > end > > this should add to a global hash (or return directly) the following: > > { > :eggs => [2,:big], > :bacon => [3] > } > > I need to keep the equal signs. This is my big question; why do you need the equal signs? I see nothing inherent about the "recipe" domain that makes the equal signs necessary or even desirable. If you were willing to ditch them, a whole slew of simpler and cleaner implementations are available. Jacob Fugal