Re: Philosophical question regarding statement terminators

vbdis@aol.com (VBDis)
19 Nov 2000 20:29:43 -0500

          From comp.compilers

Related articles
[4 earlier articles]
Re: Philosophical question regarding statement terminators vbdis@aol.com (2000-11-11)
Re: Philosophical question regarding statement terminators wclodius@aol.com (2000-11-14)
Re: Philosophical question regarding statement terminators cfc@world.std.com (Chris F Clark) (2000-11-14)
Re: Philosophical question regarding statement terminators jerrold.leichter@smarts.com (Jerry Leichter) (2000-11-14)
Re: Philosophical question regarding statement terminators cfc@world.std.com (Chris F Clark) (2000-11-15)
Re: Philosophical question regarding statement terminators vbdis@aol.com (2000-11-17)
Re: Philosophical question regarding statement terminators vbdis@aol.com (2000-11-19)
Re: Philosophical question regarding statement terminators adrian@sartre.cs.rhbnc.ac.uk (A Johnstone) (2000-11-21)
Re: Philosophical question regarding statement terminators cfc@world.std.com (Chris F Clark) (2000-11-25)
| List of all articles for this month |
From: vbdis@aol.com (VBDis)
Newsgroups: comp.compilers
Date: 19 Nov 2000 20:29:43 -0500
Organization: AOL Bertelsmann Online GmbH & Co. KG http://www.germany.aol.com
References: 00-11-124
Keywords: syntax
Posted-Date: 19 Nov 2000 20:29:43 EST

>[Lots of languages don't permit multiple statements per line.


IMO such languages date from the 50's or 60's, where programs were
punched into cards, and line numbers were required to allow for
sorting the cards after you stumbled and spread the cards all around
;-)


Even if the language specifications were not changed in later
revisions, most newer compilers allow for "free formatted" input. IMO
such extensions came into existence after moving from punched cards to
CRT's for code input and maintenance.


>Also, it seems to me that you want a language to have a certain amount of
>syntactic redundancy so that a typo or other small error is less
>likely to be something legal but not what you want, e.g. the notorious
>Fortran DO 10 I = 1.10 -John]


You're right, IMO every language should have such redundancy. Where
redundancy does not necessarily mean "more keystrokes", instead means
*unequivocal* keywords and other syntactical elements.


I shudder every time when reading somthing like "if (1 == somevar)";
that unnatural reversal of the arguments is recommended by many
people, to prevent against the usual "if (somevar = 1)" typo being
accepted by a C compiler.


DoDi


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.