Table of Content
Fortran also qualifies. A few showers early with overcast skies late. Mostly cloudy skies. High 49F. Winds SSW at 5 to 10 mph. Steady light rain in the evening. Showers continuing late.
Not all versions of BASIC required line numbers. QBasic, for instance, supported labels. You could then jump to those with GOTO (ignoring Dijkstra's "Go To Statement Considered Harmful," for the moment).
Home 20 Sweet 30 GOTO 10
This was a prototype, implemented as an experiment while the teletype-based interface that the language was being designed for was still being developed. That DTSS had a rudimentary IDE, which was nothing more than an interactive command line. The original editor for DOS was a wonderful utility called edlin. You could only edit a single line. Your program was stored in memory and you would type in single line commands to edit single lines. Before there was such a thing as a VDT , we old-timers programmed on punch cards.
This question needs to be more focused. It is not currently accepting answers. There's actually a problem because that results in home, sweet, home, sweet, home etc. Cloudy with occasional rain showers.
Sun 25 | Day
A few showers developing late. Low 42F. Winds SSW at 5 to 10 mph. High 51F. Winds SW at 10 to 15 mph. Partly cloudy skies. High 39F. Winds WSW at 5 to 10 mph. Light rain early...then remaining cloudy with showers overnight.
Labels are not the reason for basic line numbers, they are only a side effect such to say. In addition, FORTRAN line numbers were arbitrary, more like numeric labels than line numbers. And in high school, we had a "modem" that let us dial into Dartmouth's computer, and experience this wonder first hand. I remember the fairly big problem of wanting to add a line between line 24 and 25, when there was no way of renumbering lines . Connect and share knowledge within a single location that is structured and easy to search.
Photo Gallery
High 46F. Winds SW at 10 to 15 mph. A few showers early with mostly cloudy conditions later in the day. High 49F. Winds SW at 5 to 10 mph. Mostly cloudy during the evening.
Finally in the good old days there weren't any fancy editors. The only "editor" was a simple command line interface, which treated everything starting with a number being part of a program and everything else as commands to be executed immediately. Most prominent example should be the Commodore 64.
Tue 03
Showers early becoming a steady light rain later in the day. High 48F. Winds SW at 10 to 15 mph. In Mother's day, there are also some programming language jokes.. I think the question was about languages where you had to type in the line numbers yourself. I agree line numbers that are displayed automatically by the editor are very useful .
Therefore the line numbers weren't only needed as labels for the infamous GOTO, but indeed needed to tell the interpreter at what position in the program flow you are editing. Mostly cloudy in the evening then periods of showers after midnight. Low 38F. Winds SW at 5 to 10 mph. Overcast with rain showers at times. Low 39F. Winds SW at 5 to 10 mph. Overcast with showers at times.
This code would just make an infinite loop not doing anything, since is a code comment. Actually, I would argue that any answer which does not mention "punch cards" is incomplete, if it mentions neither punch cards nor FORTRAN, it is wrong. I can say that this is definitively right because my parents both used punch cards on a regular basis , then migrated to Basic and COBOL in the 80's.
But as soon as I got my hand on a Vax with it's Extended BASIC, I was so happy to never see a line number again. Back in the fifties, when high programming languages were in their early beginnings, there were no terminals, no editors, no monitors , just card punchers and readers and printers . Later, tape was introduced, but that's another story. On the first interfaces BASIC was available for, there was no shiny editor, not even something like vi or emacs . You could only print out your program on the console and then you would add new lines or replace them, by giving the appropriate line number first. You could not navigate through the "file" with the cursor like you are used to nowadays.
No comments:
Post a Comment