Re: interesting use of NEXT SENTENCE vs. CONTINUE



> A full stop is just as clear and precise (once you understand what it actually
> means) as is a NEXT SENTENCE, a GO TO, or any other CoBOL construct.

As I have pointed out before: what is 'clear and precise' is entirely
what one is used to. Of course it is obvious once you have understood
it, the question then is: how does one get to understand it ?

If one understands the standard then when a full stop (followed by a
space) is seen it clearly terminates the sentence. This can be readily
understood to: make no difference at all; or end the scope of the
statement preceeding it.

The extension of having NEXT SENTENCE in an END-IF adds a completely
new context to the full stop as it now makes it possible to be the
terminal point of an implicit GO TO even though the code is at zero
scope level.

That is a context that is disallowed by the standard and will _not_ be
'understood' by those who follow the standard. Thus it is not 'clear
and precise' to _them_ regardless of how well you understand it.

> - if you don't expect your maintenance programmers to know how to use it, don't use it.

Ah, so you do agree with me ;-)

> So any CoBOL construct that isn't found in other languages should similarly be
> eschewed?

If (and you should note that I am using if) you want your programs to
be easier to understand then one way to do this is to reduce the number
of different ways that control constructs are used. It is also an
advantage if this reduction can be guaranteed by, for example, a text
scan or a comformance checker - that way any new coder can determine
easily what contexts need to be examined (and which will only require a
cursory glance).

If, for example you want your code to be understood equally well by
multi-language coders then using, as far as possible, contructs that
they may be familiar with and avoiding those they are not, will make
them less error prone and will more readily understand your intent.

.



Relevant Pages

  • Re: Casting the return value of malloc()...
    ... term "operator" to refer to `while', so we shouldn't use it that ... The C standard does define the word "operator". ... particular context being discussed. ... ``If clause-1 is a declaration, the scope of any variables it declares ...
    (comp.lang.c)
  • Re: C as a scripting language
    ... in the context of the C Standard. ... This question is being raised in the context of section 4p5, which does not restrict the 'output' to be stream output. ... However, those same definitions also exclude data written to a file, for precisely the same reason: for some of those definitions, the reason is that the data is not perceived by the user; for other definitions, it is because the data has not exited the computer system. ...
    (comp.lang.c)
  • Re: Is this math test too easy?
    ... >> has a direct meaning unabmbiously and independant from context. ... even have a notation like circle addition or circle multiplication ... that MEANS that it doesn't have a standard interpretation, ... the main problem with standardizing notation is ...
    (sci.math)
  • Re: The Fourier transform in nature not just time<>frequency domain
    ... Transform also describes the relationship in electromagnetics ... vary, but maths doesn't. ... validity of maths in the context of the FT - which means ... standard solution for this abstract core problem. ...
    (comp.dsp)
  • Re: Two Outlooks on one machine
    ... When this individual attains a satisfactory standard in english expression, ... - Quoting and Answering ... A clarify the context, ... In general, signatures have nothing to do with the context of the article, ...
    (microsoft.public.outlook)