il Fri, 09 Jul 2004 11:15:59 +0100, Graham Nicholls <graham / rockcons.co.uk> ha scritto:: >I had to say it! you're welcome :) <snip> > I love that everything's an object, so I can >just do x.y.z.j.f combining methods - like this: > >val=@data.fetch(datid.tr('~','$').sub(/\s*$/,'') > >(I hope thats not considered bad form) So much that I intuitively try works >- which is great. yeah, we all love this feeling, and not, it's not considered bad form. Remember that you can even chain methods on the end of blocks, like: foo.gsub do |x| ... end.gsub do |x| ... end >I've not crossposted to c.l.python, as this (really) isn't a troll, but I'm >coming to the conclusion that ruby is "python done properly". usually people seem to think that ruby is smalltalk or lisp or perl done properly. Probably all of this are just unlambda done properly :) <snip> > >PS. 1 complaint - begin and end. I use vi (vim/gvim), and would prefer the >use of braces so I can quickly go to the matching start/end block with %. >Any suggestions? a #define equivalent, perhaps? I think ruby.vim allows you to do the same trick. Anyway, usually you don't need begin..end. Say, in a method you don't have to write: def foo begin bla rescue blablsa end end you can just write: def foo bla rescue blabla end And this is most of the begin..end usage :)