Re:Python goto implemented with system trace function (2017)
by pjc50 on Tuesday May 05, 2020 @10:47AM
(#23080574)
Further back, BASIC lets you go to a line number .. but the line numbers are explicit and not required to be consecutive. In fact you'd routinely leave holes in the numbering in order to insert an extra line without breaking it. Better systems offered a "renumber" function. Others .. didn't.
[ Parent
| on HN ]
Re:Python goto implemented with system trace function (2017)
by seisvelas on Tuesday May 05, 2020 @11:16AM
(#23080907)
>BASIC lets you go to a line number
QBasic let you use either a line number or a label, I believe they only kept line numbers after labels were introduced for backwards compatibility.
I know I'm veering way off topic but for as much disdain as BASICs receive, I really do feel like coding up a simple game was much easier for teenage-me in QBasic than it was in Python with pygame, for whatever reason.
Re:Python goto implemented with system trace function (2017)
by pjc50 on Tuesday May 05, 2020 @11:37AM
(#23081173)
I think a lot of people have reported having that experience, and I think it's been deeply under-investigated by programming language researchers.
Re:Python goto implemented with system trace function (2017)
by jbay808 on Tuesday May 05, 2020 @01:58PM
(#23082806)
My first programming experience was QBASIC. Even if it's not a good programming pattern, I think GOTO is a great way to let a novice programmer "discover" the idea of loops and functions for themselves. Although it's error prone, it's still very intuitive for someone with no programming background.
Re:Python goto implemented with system trace function (2017)
by sitkack on Wednesday May 06, 2020 @01:45AM
(#23088208)
QBasic is actually a really awesome language, I am bummed I didn't embrace it like I should have. I ended up going C/C++ ... Perl ... Python.
I wasted a lot of time with C/C++, if I had immersed myself in QBasic, I would have better actualized myself.