Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!topaz!husc6!seismo!mcvax!enea!sommar From: sommar@enea.UUCP (Erland Sommarskog) Newsgroups: net.lang Subject: Re: compound statements Message-ID: <1377@enea.UUCP> Date: Mon, 7-Jul-86 16:56:25 EDT Article-I.D.: enea.1377 Posted: Mon Jul 7 16:56:25 1986 Date-Received: Fri, 11-Jul-86 05:01:50 EDT References: <5287@topaz.RUTGERS.EDU> Reply-To: sommar@enea.UUCP (Erland Sommarskog) Distribution: net Organization: Enea Data, Sweden Lines: 23 In article <5287@topaz.RUTGERS.EDU> gaynor@topaz.UUCP writes: > >Oh, a couple of languages come to mind. Particularly Algol (?) and >its descendants, C, Pascal, and Ada (to name a few biggies). There >are plenty of others. 10 pts to the one who can name the most. > I would guess Algol doen NOT force you to use BEGIN-END. Simula does definitely not do it, and as far I know Algol is a true subset of Simula. I think the reason why many languages forces you to use BEGIN-END even for a one-statement body is the sake of readability. (But don't ask me why a {} increases the readability in C, I don't know that language luckilly.) In your original article you wrote you as an inconsistence with IF-, WHILE- and other compund statements. Let me draw your attention, that e.g. Ada does not have this inconsistence in a way, since you write WHILE DO END WHILE; (With my excuses for potenial errors, Ada is not my every-day language.) OK, in a procedure you do need a BEGIN also, but I would guess is due to the declarations.