Newsgroups: comp.lang.pascal Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!pshuang From: pshuang@athena.mit.edu (Ping-Shun Huang) Subject: Re: TPascal-puzzle In-Reply-To: fsbrn@BRL.MIL's message of 25 Jun 91 15:03:52 GMT Message-ID: Sender: news@athena.mit.edu (News system) Organization: Massachusetts Institute of Technology References: <27298@adm.brl.mil> Date: Mon, 1 Jul 91 02:50:02 GMT Lines: 16 In article <27298@adm.brl.mil> fsbrn@BRL.MIL ( Ferd Brundick) writes: > Overall, a ***very*** subtle bug. I prefer CASEs that use DEFAULT or > OTHERWISE instead of overloading the ELSE verb. Quite true, I would also have preferred that -- Modula-2 uses that, right? On the other hand, as long as you use an editor (i.e. emacs pascal-mode) which knows the syntax of the language and can provide the "correct" indentation, telling the difference between an ELSE which belongs to the CASE statement or to an IF statement isn't very difficult. But then, we're never going to all agree on stylistic matters like indentation, although Pascal is better than C in that regard. -- Above text where applicable is (c) Copyleft 1991, all rights deserved by: UNIX:/etc/ping instantiated (Ping Huang) [INTERNET: pshuang@athena.mit.edu]