News for hackers. Stuff that matters.
Re:The best QBasic game ever? by illuminated on Tuesday April 16, 2013 @08:43PM (#5561881)
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...
Re:The best QBasic game ever? by damncabbage on Wednesday April 17, 2013 @01:03AM (#5562779)
It's not white-space sensitive; "FOR" is the start of the loop, and "NEXT p" is something approximating the end (a goto or sorts).
Re:The best QBasic game ever? by laumars on Tuesday April 16, 2013 @09:04PM (#5561953)
Nearly 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.
Re:The best QBasic game ever? by nollidge on Wednesday April 17, 2013 @10:03AM (#5564512)
The 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.