News for hackers. Stuff that matters.
Re:The Worst Programming Environment in the World? by ams6110 on Sunday September 01, 2013 @04:55PM (#6312113)
A lot of BASIC variants back in the early personal computer days had that feature too.. you only needed to enter as much of a keyword as necessary to make it unique. Or they had other abbreviations, like '?' for 'PRINT'. Anything to save a byte.
Re:The Worst Programming Environment in the World? by Someone on Sunday September 01, 2013 @06:04PM (#6312351)
That did not save a byte. Commodore Basic did not store source code; it stored tokenized source code, with 'print' taking a single byte (http://www.c64-wiki.com/index.php/BASIC_token)
Re:The Worst Programming Environment in the World? by chipotle_coyote on Sunday September 01, 2013 @09:36PM (#6313015)
While it's been a long long time since I've used it, I think that was not the case for TRS-80 Level I BASIC -- it didn't tokenize, so shorthand saved actual memory. And not using spaces saved bytes. Apropos of the conversation on variables, Level I BASIC only allowed one-character variable names: you had 26 integer variables named A-Z, two (yes, two) string variables, A$ and B$, and only one array variable, A().

It also had only three error messages: "WHAT?" (any syntax-related problem), "HOW?" (any execution error that wasn't syntax-related, like division by zero), and "SORRY" (out of memory).

Re:The Worst Programming Environment in the World? by mgkimsal on Sunday September 01, 2013 @09:15PM (#6312961)
? was still handy because on the C64 there was a 2 screen line max when entering a program line. So you could get a longer line in by using

10 ?"hello whatever..."

which would be expanded to

10 PRINT "hello whatever..."

Line numbers counted too, IIRC, so it was more important when you had 4 and 5 digit line numbers.

But it's been 25 years since I did any commodore basic - my memory might be a bit wrong on this...

Re:The Worst Programming Environment in the World? by seclorum on Monday September 02, 2013 @10:15AM (#6315237)
C64 wasn't the only basic. GW-BASIC on the Oric-1/Atmos machines, for example, did save a byte if you used ? instead of PRINT.