Path: utzoo!utgpu!watmath!clyde!att!ihlpb!nevin1 From: nevin1@ihlpb.ATT.COM (Liber) Newsgroups: comp.lang.misc Subject: Re: Algol-style semicolons Message-ID: <9235@ihlpb.ATT.COM> Date: 21 Dec 88 01:52:36 GMT References: <1126@etive.ed.ac.uk> <208100002@s.cs.uiuc.edu> <868@mcrware.UUCP> <8008@aw.sei.cmu.edu> <88Dec16.100919est.4327@turing.toronto.edu> Reply-To: nevin1@ihlpb.UUCP (55528-Liber,N.J.) Organization: AT&T Bell Laboratories - Naperville, Illinois Lines: 23 In article <88Dec16.100919est.4327@turing.toronto.edu> perelgut@turing.toronto.edu (Stephen Perelgut) writes: |Another method of handling semi-colons is to not have them. All you |need to do is terminate multi-part statements. For example: | if x then | s1 | s2 | elsif y then | s3 | s4 | else | s5 | end if | |There are no ambiguities there! And the only cost is terminating a statement. |For example: if/end if; for/end for; loop/end loop; case/end case; etc. |This also has the effect of making programs more readable. Yes, but what do you do with statements that span more than one line? You still need a way of saying that an expression is to be continued on the next line (or that you don't need to continue a statement by use of a separator or terminator; this amounts to the same thing). -- NEVIN ":-)" LIBER AT&T Bell Laboratories nevin1@ihlpb.ATT.COM (312) 979-4751