Kevin Smith <sent / qualitycode.com> writes:

> 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:

The style I've come to is to use do/end for multi-line blocks, and
braces for single lines (where do/end seems to my eyes to be too much
noise). So I'd write

   arr.collect {|i| i+1}

and

   File.open("f") do |file|

     file.gets....

   end


Regards


Dave