From: gabriele renzi Date: 2005-07-20T16:10:55+09:00 Subject: Re: ] Re: Ruby has ruined my Java (was Re: Ruby has ruined my C++) Michal 'hramrach' Suchanek ha scritto: >> >>I, personally, would prefer something more along the lines: >> >>button.on_event( :push ) do >> puts "Hey, don't push my buttons!" >>end > > > This looks like it is more flexible .. but it requires the user of the > library to write a dispatcher function. And since ruby is dynamic you do > not need to force users into writing dispatchers to get flexibility. > > So I like the first one better. have someone noticed that this is how ruvy-gtk2 works?