From: Carl Woodward Date: 2005-07-18T08:17:23+09:00 Subject: Re: ] Re: Ruby has ruined my Java Sorry this isn't a reply to the Tk problems. I would like to say that ruby has ruined all other languages for me except for c (and hopefully lisp when I get to learn it). I find that I am now writing a lot of c in the ruby fashion and then calling it from ruby. I am trying to write some game engine code (just playing around at the moment) and wrappering it with ruby. I write Java and C# for work and I am always sad. I really miss closures and other key features. I am currently writing an application with an existing library and if I had closures I would be able to make changes to the existing code base in a really simple and elegant manner but without them I either have to spend a lot of time refactoring or just hack something together. Ruby has quite easily become my favorite language. Maybe this will change when I learn lisp but for the moment I am really happy with it. On 7/18/05, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: ] Re: Ruby has ruined my Java" > on Mon, 18 Jul 2005 08:01:02 +0900, Hidetoshi NAGAI writes: > > |> b = TkButton.new(nil, "text"=>"quit").pack > |> b.command { exit } > | > |Or, > | b = TkButton.new(nil, :text=>'quit', :command=>proc{exit}).pack > | > |Why did you write it in two lines? ;-) > > Perhaps he saw my recent slide, which tried to explain callback > blocks. > > matz. > > -- Carl Woodward 0412218979 cjwoodward@gmail.com