3 ms·
TIL that Qbasic has structure types (user defined types) https://en.wikibooks.org/wiki/QBasic/Arrays_and_Types#User-defined_type https://en.wikibooks.org/wiki/Q
by MichaelMoser123 9y ago
TIL that Qbasic has structure types (user defined types) https://en.wikibooks.org/wiki/QBasic/Arrays_and_Types#User-defined_type https://en.wikibooks.org/wiki/QBasic/Arrays_and_Types#User-d...
If it had functions as values then it would have had object based programming.
i think the good part about basic was that it supports both unstructured programming with goto/gosub (gets you going quickly) and structured programming (if you don't use goto/gosub and write functions). Maybe we lost this multi paradigm aspect with later (more powerful) languages.
That may have been because of Dijkstra and his 'goto considered harmful' rant : authors of programming languages do not like to support the unstructured paradigm out of fear that they will be taken as a not-so-serious-programming language. Somehow they did not take notice that unstructured programming is quite good as a teaching method and that one can choose not to use goto when it is available. I really don't think that it is such a strong habit that is impossible to unlearn. It is far easier not to learn how to program at all...