3 ms·
I remember QBasic (the DOS 6 version at least) having a distinction between Subs and Functions, where the function returns a value but the Sub doesn’t. I never
by whstl 3y ago
I remember QBasic (the DOS 6 version at least) having a distinction between Subs and Functions, where the function returns a value but the Sub doesn’t.
I never stoped to wonder why and just accepted this as reality, but the mere existence of this distinction helped me understand software from an engineering point of view quite early.
It was a bridge to Functional programming, CQRS, Bertrand Meyer’s teachings, 10 years before I could even have a chance of hearing about it.
- colanderman 3y agoI didn't understand it at the time, but even Applesoft BASIC made the same distinction (DEF FN/FN vs. GOSUB/RETURN). In fact functions could only be defined as pure mathematical expressions.
- ikari_pl 3y agowhich was also what limited their practical applications at the time