From: Kevin Smith Date: 2001-01-06T15:16:54+09:00 Subject: [ruby-talk:8723] Re: Braces and begin/end Robert Gustavsson wrote: >The construction below does not work: >------------------------ >a = 10 >{ > print a, "\n" > a -= 1 >} while a > 0 As others have pointed out, { } is not intended to be used in this way. I've been trying to develop my own Ruby style. Since I came from a C++ world, I realized that the curly braces (with dramatically different meaning) would be confusing to me. So I don't use them. Ever. I always use do/end, formatted like this: planets.each do | planet | # stuff goes here end It seems clean to me, so I'll keep doing it unless/until I see a coding standard that I like better. Kevin