On 25.04.2009 13:24, Steven Taylor wrote: > Phlip wrote: > >> Blocks are mondo-important, and those other (corporate!) languages >> should be >> ashamed they don't have them yet... >> >>> Is this how things are or are there some techniques to smooth this >>> process somewhat? >> Write lots of unit tests. > > Thanks. I'll look into the 'longcut' version, at least that appears, on > the face of it, to be the explicit version (which suits my way of > thinking). It used to be a bit slower though. I haven't done any measurements with 1.9.1 but my rule of thumb is: use explicit block if you need to store the block or pass it on to another method, use yield otherwise. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/