From: Hal Fulton Date: 2004-04-08T03:05:44+09:00 Subject: Re: Idea: Simplified GTK Chad Fowler wrote: > I know you lose some flexibility (or you make it one level harder), but > I can't help wanting it to look like this: > > def app_logic > main { > hbox { > vbox { > button("Do it") { puts "pressed btn1" } > button("This too") { puts "pressed btn2" } > } > vbox { > button("Third button") { puts "pressed btn3" } > } > } > } > end Nice and clean. Sometimes you'd need to save references to the objects, though. > Even if something like this (your idea) has some shortcomings, I still > think it's worth doing. It will be very useful for the situations when > its shortcomings aren't an issue (for example, quick and dirty little > GUI apps). > > Now that I've commented, can I see the code? ;) Sure, I'll email it. ;) Hal