Re: If you were inventing CoBOL...
From: Chuck Stevens (charles.stevens_at_unisys.com)
Date: 09/15/04
- Next message: news.anet.com: "Abend Question."
- Previous message: docdwarf_at_panix.com: "Re: If you were inventing CoBOL..."
- In reply to: Robert Wagner: "Re: If you were inventing CoBOL..."
- Next in thread: Robert Wagner: "Re: If you were inventing CoBOL..."
- Reply: Robert Wagner: "Re: If you were inventing CoBOL..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 15 Sep 2004 09:16:50 -0700
I can think of lots of cases in which it is possible for procedure division
code to violate English syntax rules. One that comes to mind is that COBOL
grammar does not require agreement in number between the literals and the
keywords that introduce them: VALUE and VALUES are both permissible in an
88-level item regardless of how many literals there are.
E, VALUES IS and VALUE ARE are all permissible
"Robert Wagner" <robert@wagner.net.yourmammaharvests> wrote in message
news:icmek0dhec01s1pjkbbg26o6pk6p7ahmdh@4ax.com...
> Yes, they do. (For simplicity, I omitted + Punctuation.) I can't think
> of a case where Cobol's procedure division syntax violates English
> syntax. Can you?
Sure I can. Scope terminators!
I also think the "direct" and "indirect" objects (for want of a better
"offhand" term) in "MULTIPLY A BY B ROUNDED ..." are in direct conflict with
English syntax.
And if the VALUE clause in the data division is to mimic English syntax, the
fact that there is no requirement in COBOL that the number of literals used
in the list agree with the introductory keyword in number.
> The rule-breaker is INVOKE (or CALL) taking as its
> object a method name written as a non-gerundial verb. Defenders of
> INVOKE can say 'The standard didn't tell you how to name a method.
> Don't blame Cobol because YOU chose the ungrammatical word.' ...
It appears to me that the purpose of making COBOL "simple English or
pseudo-English" was to make it, insofar as possible, self-documenting.
Whether the syntax violates the rules of *English grammar* is irrelevant so
long as the grammar to which the syntax belongs is unambiguously defined.
That leads to my opinion that the appropriate response to the complaint "But
INVOKE violates the rules of English grammar!" is thus "feh."
-Chuck Stevens
- Next message: news.anet.com: "Abend Question."
- Previous message: docdwarf_at_panix.com: "Re: If you were inventing CoBOL..."
- In reply to: Robert Wagner: "Re: If you were inventing CoBOL..."
- Next in thread: Robert Wagner: "Re: If you were inventing CoBOL..."
- Reply: Robert Wagner: "Re: If you were inventing CoBOL..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|