From: Eero Saynatkari Date: 2006-10-07T02:51:50+09:00 Subject: Re: What is the reason for this syntax? --xQmOcGOVkeO43v2v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2006.10.07 00:50, John Turner wrote: > Vidar Hokstad wrote: > >In Ruby an expression continues on the next line if syntax > >unambiguously shows that the expression is incomplete. >=20 > So why can't the parser continue a statement on to the next line if the= =20 > syntax unambiguously shows that the expression on the next line is the=20 > continuation of the line before it, such as lines starting with do or=20 > .foo which are incorrect otherwise? It might require arbitrary parsing lookahead or other facilitation at the parser/lexer level. In any case, I just suggest getting over it (pun intended) and falling in line (muhahaa) with the normal Ruby layout :) --xQmOcGOVkeO43v2v Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFJpct7Nh7RM4TrhIRAj6jAKCZBbVhHZNOPCMPDjdz0RJogjCXLQCggQmi W4wtU5cDsB5/4xpJ3l514vk= =EFZB -----END PGP SIGNATURE----- --xQmOcGOVkeO43v2v--