"Goto statement considered superfluous" (was: If you were inventing C)

From: Richard (riplin_at_Azonic.co.nz)
Date: 09/24/04


Date: 23 Sep 2004 15:52:12 -0700


"Howard Brazee" <howard@brazee.net> wrote

> I don't think it would. It already was significantly different from other
> languages of the time. We would have used the tool as given to us.

In what way was it 'significantly different' ? It was developed as a
common subset of Flow-Matic and the other languages in the
acknowledgement in every Cobol manual. It used ideas from many
business languages. Its major distinction was that it was 'common',
ie the same on every system rather than the existing business
languages which were different from each other.
 
> I also don't think that removing ADD, SUBTRACT, MULTIPLY, and DIVIDE would have
> hurt it. We learned to use those verbs because they were part of the tool.

It certainly would have hurt it unless they also provided COMPUTE
(which didn't arrive until '74).

The problem with COMPUTE is that it uses an intermediate result that
may make the calculations much slower than using the discrete
statements. In 1960 there was no 'power to burn' in the CPUs and
forcing the use of COMPUTE would have hurt the language greatly.

Even in the 80s there was a reluctance to use COMPUTE due to
performance issues. For example I was running MF CIS Cobol on
multiuser 2.5 MHz machines.

Similarly in the 80s C was not displacing Fortran because C promoted
real to double in function calls. Fortran used the parameters as
specified and this often meant that Fortran would outperform C, and
still does.



Relevant Pages

  • Re: "Goto statement considered superfluous" (was: If you were inventing C)
    ... > common subset of Flow-Matic and the other languages in the ... no members who were Fortran programmers. ... Most of what I have read elsewhere on the birth of COBOL, is in MO, part ... > It certainly would have hurt it unless they also provided COMPUTE ...
    (comp.lang.cobol)
  • Re: Unneeded Languages In Documents
    ... languages marked in them without good reason. ... the Languages criterion of the Find dialog. ... they appear in the HTML ... Maybe it doesn't hurt much to just ignore it. ...
    (microsoft.public.word.vba.general)
  • Re: ruby and C
    ... It doesn't hurt to learn C first, but it isn't necessary to master it. ... It's hard to feel productive and useful with it compared to interpreted languages like Ruby, Perl, Python or PHP. ... Much terminology comes from C or before, and many fundamental concepts are well established in C books, but don't feel like you have to learn one language at a time. ...
    (comp.lang.ruby)
  • Re: Fortran now in the Great Language Shootout
    ... > representative of how Fortran compares to the other programming ... > languages than the current naive implementation in multiple languages. ...
    (comp.lang.fortran)
  • Re: what is the most suitable Linux platform for Programmers and software developers
    ... C, C++, Perl, Python, Lisp, and a bunch of other languages are supported ... There are FORTRAN compilers, but FORTRAN ... Look at the Linux ...
    (comp.os.linux.misc)