3 ms·
> If you wanted to edit the text, you used a line editor to rewrite the line it was on. After a while you could print the whole thing again if you needed. That
by eru 3y ago
> If you wanted to edit the text, you used a line editor to rewrite the line it was on. After a while you could print the whole thing again if you needed.
That's probably also part of why when you used line numbers in early BASIC, you left plenty of numerical gaps, so you didn't have to re-print as often.
- gattilorenz 3y agoI assume it’s also because reusing a line number means losing whatever code was previously there, and if you find a bug and need to add extra code you don’t want to rewrite part of what is correct just to add a few instructions in between, whether on a teletype or on a terminal with a screen.
- kryptiskt 3y agoIt wasn't that bad, you could renumber programs with a single command if you got stuck with no room to insert a line.
- thristian 3y agoThe BASIC I grew up with (Applesoft Basic) didn't have a built-in command to renumber a program, but it did have a helper tool you could run from disk. Unfortunately, it only updated the number of each line - it didn't update the line number references in commands like GOTO or GOSUB, so it was pretty much useless for any program large enough that you might want to automate renumbering.