07-11-2024, 01:54 PM
Does anyone know the history of how it came to be that "?" became a short form for "PRINT". Has it always been built into the bones of QBasic. Could have been ported over from some other language. Just curious.
History of the question mark
|
07-11-2024, 01:54 PM
Does anyone know the history of how it came to be that "?" became a short form for "PRINT". Has it always been built into the bones of QBasic. Could have been ported over from some other language. Just curious.
07-11-2024, 02:33 PM
I do know that it works in SmallBASIC but not in Just Basic (nor LB).
b = b + ...
07-11-2024, 02:34 PM
I do not know an answer, but it would be funny to have more like this. Maybe | for input and § for screen.
"Give a man a program and he will be happy for a day. Teach him to program and he will be happy for the rest of his life."
07-11-2024, 02:43 PM
The "?" sign for "Print" goes back to GW-Basic. If you used the program editor you could use it to output: "?2 + 2".
The idea behind is probably that "?" stands for the question: "How much is" 2 + 2.
07-11-2024, 03:24 PM
The question mark (?) as a shortcut for the PRINT statement was first introduced in Microsoft BASIC. This feature became widely recognized and used in various implementations of Microsoft BASIC, including:
... or at least that's what ChatGPT thinks.
I knew I'd seen this before: https://retrocomputing.stackexchange.com...iate-print
Answers in the BASIC Programming group suggest "?" for PRINT was introduced in Microsoft Level-2 BASIC, while Microsoft Level-1 BASIC had the "P" abbreviation for PRINT.
07-11-2024, 08:19 PM
It would have had to have been one or two programmers who came up with it. I wonder if Kemeny or Kurtzas would know (or have tracked ) their Basic language evolution over time?
07-11-2024, 08:52 PM
In True Basic. The exclamation point begins remark. Not apostrophe.
I got this from a book: Radio Shack TRS-80 Model I allowed abbreviation of keywords. But also had to use period. Like "P." for "PRINT". "I." for "INPUT". "GOS." for "GOSUB" because "G." already taken for "GOTO".
07-11-2024, 10:45 PM
You know what a better shortcut isPRINT... oops, ? It's the one to SCREEN 0. What is it? Nothing! SCREEN 0 is the default screen! Who made it that way? God. He did so by sneaking back into the office on the 7th day.
Pete - You can't do everything in SCREEN 0, but since you can't do everything anyway, it's perfect! |
« Next Oldest | Next Newest »
|