From: Jacob Fugal Date: 2005-07-19T06:55:23+09:00 Subject: Re: ] Re: Ruby has ruined my Java (was Re: Ruby has ruined my C++) On 7/18/05, Daniel Amelang wrote: > Let's say that I have this...friend...um yea. And this 'friend' was > tossing around ideas about what a rubyesque GUI toolkit API would look > like. What would people think of something like this for event > handling?: > > ... > button.when_pushed do > puts "Hey, don't push my buttons!" > end > ... I, personally, would prefer something more along the lines: button.on_event( :push ) do puts "Hey, don't push my buttons!" end I happen to have the same "friend", though I notice he's been in a coma while his alter ego has been busy with life, marriage and such. :) Jacob Fugal