Re: indentation - unbalanced parentheses



James Giles wrote:

(snip on Pascal)

Pascal's labels were numeric because in those days statement
labels were numeric in nearly all languages. There was nothing
particularly unusual about that. (If I'm using lots of GOTOs,
which hasn't been common in my code for maybe 30 years,
I *prefer* numeric labels. They can be kept in ascending
order and therefore provide a clue to navagating the code.
Sure, you can keep alphabetic labels in alphabetic order
but how is that different than just using numbers?)

Algol has alphanumeric labels, and PL/I likely inherited
its alphanumeric labels from Algol. Fortran and BASIC with
numeric labels also would have been around. I don't know
how COBOL labels work, but it would seem reasonably close.

-- glen

.



Relevant Pages

  • Re: Assigned gotos in standard C
    ... To do this I need a way to perform assigned gotos, ... have a number of labels LABEL_0, LABEL_0, .. ... My current solution uses setjmp/longjmp, ... longjmp, and so it can not be stored in a register. ...
    (comp.lang.c)
  • Re: Damn you, FEDEX! or Nikon D40 lost in Springfield, MO blackhole.
    ... the 2 mp Mavica he had been using with a Nikon D40. ... After shopping around, he got me to order one for him. ... The shipper had it insured, but from what I have read it could take weeks to sort this crap out. ... You may get your insurance from FedEx and a couple weeks later they find it and deliver it. ...
    (alt.photography)
  • Re: Perform Thru/Go to vs. Perform - Compile Speed
    ... My statement is that they don't cost anything. ... unique and a hierarchic structure indicated how code and labels were ... This was when spagetti code used gotos between dozens of ... When programmers moved to 'modern' languages that allowed alphanumeric ...
    (comp.lang.cobol)
  • Re: Array help for C++
    ... and goto statements can go to labels anywhere. ... A major difference is that in a flow chart the origin and destination ... To get the same effect as with gotos one would need a construct that I ... the computed comefrom and equivalents would be quite useful. ...
    (comp.programming)
  • Re: Paper on PL/I
    ... one of the things I need to cover is interesting language features such as the treatment of gotos and labels, ...
    (comp.lang.pl1)