Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

They were essential for branching with GOTO and GOSUB.

Example:

    10 PRINT "HELLO ";
    20 GOTO 10
This would create an infinite loop that you could break with Ctrl+C.

You could then type:

    15 PRINT "WORLD ";
And when you listed the source code (with the command LIST) you would see:

    10 PRINT "HELLO ";
    15 PRINT "WORLD ";
    20 GOTO 10


Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: