From: gabriele renzi Date: 2004-07-09T21:02:32+09:00 Subject: Re: I love Ruby il Fri, 09 Jul 2004 12:51:27 +0100, Graham Nicholls ha scritto:: >I didn't even know there was a {} ! >Documentation (up to date) would seem to be a minor problem with ruby - am I >being reasonable ? (To be fair, I've yet to read my 2 books from cover to >cover, so I've probably missed it.) For instance, I believe theres no 1.8 >documentation. I'm still in love, though ;-) you're reasonable but not in this thing. blocks in ruby are in the form: amethod do |vars| body end or amethod { |vars| body } this is the only place where {} are used as syntax delimiters, and the common idiom is to use do..end for multiline stuff, and {..} for one-line blocks. You can't use them in place of begin..end, like: begin print 10 end while true { print 10 } while true