From: "Florian Groß" Date: 2005-08-07T06:48:38+09:00 Subject: Re: new block notation Daniel Brockman wrote: > Just a random thought. If we can't do fun(...) { ...} > because we can't add a new keyword, what about this? > > make_counter = do(start=0) { do { start += 1 } } > counter = make_counter[5] > 5.times { puts counter.call } > > I haven't considered backwards-compatibility, or much > anything else for that matter. It just occured to me. Thought about it shortly as well while browsing through the keyword file, but I think that this just looks off: make_counter = do(start=0) do do do start += 1 end end OTOH I'm not sure I see the problem with changing lambda or fun.