From: darren kirby Date: 2006-08-19T03:19:11+09:00 Subject: Re: Syntax checker wtf? --nextPart12193962.OgB0LmhuRo Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline quoth the Just Another Victim of the Ambient Morality: > > Okay, judging from your examples, I think the problem is that you're > hitting a rather sore spot in the Ruby interpreter. I've done a few > examples and it looks as if the Ruby parser does a lazy evaluation of > parenthesized (and bracketed) things. It just so happens that these are > exactly the kind of mistakes you make so they really seem to bite you. > The only thing I can suggest is that you close all your brackets and > functions before filling them. So, while editing, you'll write things in > this order: > > def some_function > end > > ..and then... > > def some_method > @member[] > end > > ...and finally... > > def some_method > @member[@other + 2] > end Some editors (kate for one) can even do this for you. Type a single or doub= le=20 quote and it will close it for you, as well as for all manner of=20 braces '(', '{', '['.... I tried used it myself for a while but found it too annoying, as I generall= y=20 closed my own braces out of habit, and there are those times when you reall= y=20 do just want opening braces... =2Dd =20 =2D-=20 darren kirby :: Part of the problem since 1976 :: http://badcomputer.org "...the number of UNIX installations has grown to 10, with more expected..." =2D Dennis Ritchie and Ken Thompson, June 1972 --nextPart12193962.OgB0LmhuRo Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBE5gSKwPD5Cr/3CJgRAq2eAKDeP3avuOEHiveHIwROAqqKekfG2QCeJV7W WGkbpNnTBKfsQKFlMjyHlhM= =aIMH -----END PGP SIGNATURE----- --nextPart12193962.OgB0LmhuRo--