Re: Where are spaces required in COBOL source code?



Chuck Stevens wrote:
> <epc8@xxxxxxxx> wrote in message
> news:1117154259.996313.163080@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> > Please note that the first language I learned was FORTRAN using
> > fixed-form (punched card) format. There spaces are only meaningful
> > inside string literals.
>
> Getting as much as possible accomplished on a single line of source code
> used to be considered the hallmark of Expert Coding. This has passed out of
> favor -- even in languages where it is common like FORTRAN and ALGOL --
> because it's rarely very readable and often difficult to maintain. It's
> not just FORTRAN.
>

Maybe Dijkstra was correct. I'm guilty on at least 3 counts. (FORTRAN,
APL, and BASIC.) Perhaps I've found the programmer's "Twinkie defense"
.... "But your honor, I once programmed in BASIC."

http://www.cs.virginia.edu/~evans/cs655-S00/readings/ewd498.html

Alas, he has something very nasty to say about COBOL.

.



Relevant Pages

  • Re: Write position
    ... But it's surprisingly hard to do in Fortran. ... the format correct to fill the record (including the newline sequence). ... NCOUNT = NCOUNT + 1 ...
    (comp.lang.fortran)
  • Re: Fortran is eating my brain
    ... Last few years of my life i have learned many languages (otherthan ... Nowadays i use perl python tcl etc for creating traslating and parsers ... first one writes the output file using fortran units wither in UNFMTD ... Once upon a time formatted data was only available if you used a FORMAT but then a variety of ways for having the system use some format, of its convenience, arrived. ...
    (comp.lang.fortran)
  • Re: speed up calculation suggestions
    ... Fortran matter. ... same internal formats - the ones that the CPU supports. ... the large majority of machines today use the same format. ...
    (comp.lang.fortran)
  • Re: Language lawyers: Was: Re: Paging the gfortran (64-bit Linux, medium memory model) mavens
    ... The H format descriptor goes back to Fortran I in 1956. ... Doing character manipulation on machines like the CDCs was a PITA. ... that the computing power of a musical greeting card is more than ...
    (comp.lang.fortran)
  • Re: Variable length/precision formats?
    ... I'm returning to Fortran after many years of C, ... is passed to the printfrather than being hardcoded into the format. ... request more features, the standard changes, and more ... vendor representatives were discussing "DEC VFE's". ...
    (comp.lang.fortran)