From: Joe Van Dyk Date: 2005-12-08T23:13:30+09:00 Subject: Re: do/end vs braces On 12/8/05, Steve Litt wrote: > Hi all, > > It looks to me like when you use an iterator (each for instance), you can make > the block either from a do/end pair, or from curly braces. All things being > equal, I'd greatly prefer to use do/end. Are there any differences in runtime > speed, capabilities, or Rubyness? Typically, 5.times { |i| puts i } 5.times do |i| puts i end Generally people save do .. end for multiline stuff. Don't think there's a difference in speed. Sometimes people who use vim use only braces for vim's matching capabilities, although didn't someone fix that for do..end?