Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site watnot.UUCP Path: utzoo!watmath!watnot!djfiander From: djfiander@watnot.UUCP (David J. Fiander) Newsgroups: net.lang Subject: Re: compound statements Message-ID: <11865@watnot.UUCP> Date: Sun, 6-Jul-86 12:35:01 EDT Article-I.D.: watnot.11865 Posted: Sun Jul 6 12:35:01 1986 Date-Received: Mon, 7-Jul-86 01:13:05 EDT References: <5752@alice.uUCp> Reply-To: djfiander@watnot.UUCP (David J. Fiander) Organization: U of Waterloo, Ontario Lines: 23 Summary: Other languages >> In many languages, the body of a program or subprogram consists of a >> compound statement. This seems like an arbitrary restriction, and is >> quite annoying at times. Often the action of a program or subprogam >> is expressable as a single statement, and I would never otherwise >> enclose a single statement within a compound statement. > >The only one that comes to mind is C. I suspect that it makes parsing >much easier in C. Don't forget : Pascal (even if you want to), Modula-2 (same thing really), Ada (tm), and COBOL (I think, it's been a while). It's very common. In fact a friend of mine here at the university was also wondering why that restriction exists, although he was mainly concerned with C at the time. -- ---------- "The opinions expressed here are mine and almost definitely no-one elses" UUCP : {allegra,ihnp4,decvax,utzoo,clyde}!watmath!watnot!djfiander CSNET : djfiander%watnot@waterloo.CSNET ARPA : djfiander%watnot%waterloo.csnet@csnet-relay.ARPA BITNET: djfiande@watdcs