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

That may be the case, but the oldest ANSI basic that Wikipedia mentions is "for minimal Basic" from 1978. This text is from 1975, and I doubt that ANSI standard had anything like what we nowadays call functions.

Typical Basics of 1975 had gosub/return, but no functions (= no arguments, no return values). Apart from loop variables, all variables were global.

Commodore Basic had a "def fn" command, but it only supported single-line (= single-statement) functions.

Add in the effect that one had to 'name' subroutines by line number, and compare this with the Lisp's and Fortrans of ten years earlier, and Dijkstra's position becomes quite defensible.



Commodore Basic had a "def fn" command, but it only supported single-line (= single-statement) functions.

Sounds vaguely familiar!




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: