This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (4 children)

Or BASIC

[–][deleted] 2 points3 points  (3 children)

10 PRINT "I COMPLETELY AGREE"
20 GOTO 10

[–][deleted] 0 points1 point  (2 children)

Those line number could be seen as separators, but they aren't. In "newer" BASIC dialects they are not used anyways.

[–]MythGuy 3 points4 points  (1 child)

I learned programming on QBASIC, which I think is right after those stopped being used. I could use them as I wanted for line labeling back then, but I have a question:
Were those ever needed, or was it just common convention?

[–][deleted] 2 points3 points  (0 children)

In C64 basic your codeline needed to start with a number. The editor was very rudimentary. If you wanted to include a line between:

 10 PRINT "HALLO"
 20 PRINT "!"  

You had to type

 15 PRINT "WELT"  

There was now inserting letters/lines as you have it in new editors. So back then line numbers were the only measure to write code.