On Tue, Jul 30, 2002 at 11:19:52PM +0900, Michael Campbell wrote:
> Is there an accepted standard as to when to use {} vs do/end?
>
I personally like the {} for the simple reason that it is easy
to test for matching pairs in vi.
eg
[1,2,3].each { |x|
do something...
}
To me this is easier to debug and looks as elegant as
[1,2,3].each do |x|
do something...
end
$0.02
--
Jim Freeze
If only I had something clever to say for my comment...
~