Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!husc6!uwvax!uwslh!lishka
From: lishka@uwslh.UUCP (Fish-Guts)
Newsgroups: comp.sys.amiga
Subject: Re: Draco keywords
Message-ID: <337@uwslh.UUCP>
Date: 21 Jun 88 16:11:56 GMT
References: <1809@van-bc.UUCP>
Reply-To: lishka@uwslh.UUCP (Fish-Guts)
Organization: U of Wisconsin-Madison, State Hygiene Lab
Lines: 40

In article <1809@van-bc.UUCP> lphillips@lpami.van-bc.UUCP (Larry Phillips) writes:
>Re: DRACO's use of reversed keywords for ending the construct:
>
>  One of the beefs I have with both C and Pascal is that all block
>structures end with the same keyword. I personally prefer them to be
>distinct for each block type, and it doesn't matter to me whether they are
>reversed keywords or ENDXXX, or whatever. I think that the ability to
>quickly determine the extent of a structure regardless of minor style
>differences is important to a quick grasp of the meaning of a bit of code.

     Actually, I find that this is very easy to solve with a few
well-placed comments.  *ALL* of my constructs look like this:

	void
	foobar()
	{
		if( glarch!=snafu ){
			printf("Hello world!");
		} /* if( glarch!=snafu ) */
	} /* foobar() */

It may be a bit "wordy," but I find that when I have about 5 levels of
nested "if's," "switch's," "while's" and whatever else it is much
easier to figure out which closing brace matches with which open brace.
Just personal taste, I guess.

>+----------------------------------------------------------------+ 
>|   //   Larry Phillips                                          |
>| \X/    {ihnp4!alberta!ubc-vision,uunet}!van-bc!lpami!lphillips |
>|        COMPUSERVE: 76703,4322                                  |
>+----------------------------------------------------------------+

					-Chris
-- 
Christopher Lishka                | lishka@uwslh.uucp  
Wisconsin State Lab of Hygiene    | lishka%uwslh.uucp@cs.wisc.edu
Immunology Section  (608)262-1617 | ...!{rutgers|ucbvax|...}!uwvax!uwslh!lishka
"...Just because someone is shy and gets straight A's does not mean they won't
put wads of gum in your arm pits."
                          - Lynda Barry, "Ernie Pook's Commeek: Gum of Mystery"