From: Wayne Blair Date: 2001-06-16T10:42:30+09:00 Subject: [ruby-talk:16525] Re: Smalltalk vs. Ruby ----- Original Message ----- From: "Avi Bryant" To: "ruby-talk ML" Sent: Friday, June 15, 2001 9:06 PM Subject: [ruby-talk:16524] Re: Smalltalk vs. Ruby > On Sat, 16 Jun 2001, Wayne Blair wrote: > > > Sure, but what we're saying is that this is easier to read: > > > > connect(someLocation) > > { |connection| > > ... > > } > > Well, sure, but I thought > > connect(someLocation) do > |connection| > ... > end > > was actually pretty close to > > connect: someLocation do: > [ :connection | > ...] > > if we're going for pseudo-smalltalk. > Humourously enough, I wasn't even talking pseudo-smalltalk. I just like it when block delimiters are nice and lined up on the left, and indented, because it lets me take in a lot more code in a glance.