From: Wayne Blair Date: 2001-06-16T09:44:46+09:00 Subject: [ruby-talk:16519] Re: Smalltalk vs. Ruby This is a multi-part message in MIME format. ------=_NextPart_000_0114_01C0F5DC.6D08AFF0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable ----- Original Message -----=20 From: Michael Lucas-Smith=20 Actually I might just take a moment to bring up one of my previous = points again. Syntax! Kent Beck showed me a very interesting phenominum in one of his = books. It's called the rectangle. self connect: someLocation do: [:connection | .... ... ....] instead of the more C-like structure self connect: someLocation do: [ :connection | ... ... ...] which leaves an onimous [ hanging out in the middle of no where. = Ever since me and my collegues at work saw this [...] visually, we have = adopted it. It makes things easier on the eyes. I really wish Ruby would = let me start my blocks on the next line. I would like this as well. For me, the code is much easier to read. Wayne ------=_NextPart_000_0114_01C0F5DC.6D08AFF0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
----- Original Message -----
From:=20 Michael Lucas-Smith =

Actually I might just take a moment to bring up one of = my=20 previous points again. Syntax!
Kent Beck showed me a very = interesting=20 phenominum in one of his books. It's called the = rectangle.

self=20 connect: someLocation do:
    [:connection=20 |
    ....
    = ...
   =20 ....]

instead of the more C-like structure

self = connect:=20 someLocation do: [
    :connection = |
   =20 ...
    ...
    = ...]

which leaves=20 an onimous [ hanging out in the middle of no where. Ever since me = and my=20 collegues at work saw this [...] visually, we have adopted it. It = makes=20 things easier on the eyes. I really wish Ruby would let me start my = blocks=20 on the next line.
I would like this as well.  For = me, the code=20 is much easier to read.
 
Wayne
 
------=_NextPart_000_0114_01C0F5DC.6D08AFF0--