Re: Reviving REMARKS



In fact the structured layout of the IDENTIFICATION DIVISION with its
fixed paragraph names encouraged the inclusion of significant
documentation in a standardized way. Every language has a commenting
facility. What was unique about the ID DIV was that it had a standard
format. The standard mavens, in their eternal and rather foolish quest
to make COBOL "just like" every other language gave up some of its
unique virtues.

Fortunately compiler writers tend to cater to old programs and hence
features stay in long past their scheduled execution date. Hopefully I
will still be able to use the ID DIV the way GMH intended for the rest
of my programming career.

BTW the "self documenting" nature of the language does not tell the
person reading a program years later the who what when why of the
creation of the program. And without someencouragement programmers
will take the easy way out. How many internally documented program
written in Java or Perl have you seen lately? In a text book, maybe.
A "generalized commenting facility" may as well be no facility at all.
Programmers are busy and will skip over it.

(end grump)

John Culleton

.



Relevant Pages

  • Re: CRT and Win32 SDK
    ... However, it might give a reader an impression that when doing embedded programming one typically has a full-fledged language at hand, where in effect the runtime library implements what the OS would provide on e.g. a PC. ... The C and C++ standards differentiate between hosted and free-standing implementation to deal with the special constraints of embedded programming, where free-standing doesn't need to provide all of the language's standard library, but even that distinction does in practice not go far enough: it might be that fundamental language features such as static variables and exceptions are not available on the embedded platform's language implementation. ... Both the user-mode Win32 API and the kernel ... The documentation remarks are very important parts of that documentation and form the main part of it. ...
    (microsoft.public.vc.language)
  • Re: Does C++ have sequence points ?
    ... MSDN and other documentation merely seek to *describe* the ... they carry no authority whatsoever. ... standard *defines* the language, and so is always right, by definition. ...
    (comp.lang.cpp)
  • Re: Python Standardization: Wikipedia entry
    ... There is no "Standard" to reference that is ... The supposed definition of Python is decided by the developers ... behind that group making changes as the language definition shifts. ... suggesting changes and arguably more complete documentation. ...
    (comp.lang.python)
  • Re: Is C99 the final C? (some suggestions)
    ... > that someone will try compile their stuff on an old compiler. ... > because the ANSI standard obsoleted them, and everyone picked up the ANSI ... fixed by using another language. ... >>are multiplying two expressions of the widest type supported by your ...
    (comp.lang.c)
  • Re: Two Questions about "strlen", "strcat" and "strcpy"
    ... >> No. zero terminated strings is the whole problem in the first place. ... > OR length prefixed strings the language would retain compatibility ... is not easily duplicated with the old standard then it will foster interest. ... The C standards committee is dead. ...
    (comp.lang.c)