From: Kero Date: 2004-04-10T17:39:16+09:00 Subject: Re: Idea: Simplified GTK > But coding using the EzGtk example doesn't feel so much like a program, > as describing a layout for something. Feels like writing for a different > purpose, even though it /is/ just typical ruby code. > > They read to me like: > main do # main does: > vbox do # vbox does: > end > end > > compared to: > > main { # Inside of main ... > vbox { # inside vbox inside of main > } > } > } > But like you said, same difference. To stress the difference between action-blocks and layout-blocks, why not use do-end for the actions and { } for the layout? vbox { button "Options" do options_dialog do ... end end } Never thought I'd actually propose a coding guideline... Usually I hate them :) Bye, Kero. -- wanna keep developing software? http://demo.ffii.org/index.php