3 ms·
Just realised, same indentation and no-end-character rules as python :) Although I've been writing qbasic back in the days and now writing python for fun, I've
by illuminated 14y ago
Just realised, same indentation and no-end-character rules as python :)
Although I've been writing qbasic back in the days and now writing python for fun, I've never realized this before...
- laumars 14y agoNearly every programming language follows those same indentation rules. And it's pretty common for languages not to have line termination characters too. What you're describing is pretty normal rather than a delightful coincidence.
- damncabbage 14y agoIt's not white-space sensitive; "FOR" is the start of the loop, and "NEXT p" is something approximating the end (a goto or sorts).
- nollidge 14y agoThe IDE forced those formatting conventions on you, but QBasic doesn't actually have any indentation rules at all, and IIRC that stuff was also configurable.