From: Kyle Rawlins Date: 2002-08-01T05:07:42+09:00 Subject: Re: Style question --ZoaI/ZTpAVc4A5k6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 01, 2002 at 04:53:44AM +0900, Charles Hixson wrote: > Unfortunately for me, what reads well to me is: > [1, 2, 3].each > { |x| do something... > } > with the braced aligned. The Ruby interpreter, however, disagrees with m= e. I agree...or even better (for me): [1, 2, 3].each do |x| something(x) end That way at a glance I can see exactly where the block begins and ends, whi= ch takes me a few fractions of a second longer (but enough to bother me) when = the 'do' is on the previous line. It's even more helpful when the block is well indented. --=20 http://mas.cs.umass.edu/~rawlins -- There is no enemy anywhere. --ZoaI/ZTpAVc4A5k6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9SEOLncsSsHSBypARArhdAJ9gDL9NJNHSrOzFWawGvsPESUNL1gCglQRV IDjfdnBUe3oYsGUJPw8xUow= =h7GB -----END PGP SIGNATURE----- --ZoaI/ZTpAVc4A5k6--