News for hackers. Stuff that matters.
Re:GOTOphobia Considered Harmful (In C) by PaulHoule on Monday February 27, 2023 @01:11PM (#34959872)
BASIC?

GOSUB was so much worse than GOTO in that it had a stack for the current line but no stack for variables so you could not write recursive functions. I think Fibonacci as a recursive function is malpractice but boy was it a hassle to write Quicksort in BASIC although I had no trouble coding up an FFT (1950s FORTRAN style) from first principles in BASIC on TRS-80 Model 100 on a bus ride across Vermont.

Funny though I did come to a conclusion that for the Arduino programs I wrote I didn’t need a stack at all.

There are no comments on this comment yet.