What does REM stand for in BASIC?

18,861

Solution 1

I believe it stands for "Remark", that is, a comment. From the MSDN site:

Used to include explanatory remarks in the source code of a program.

Solution 2

It was REMark, back in the late Steam Age (ca. 1971 or so), when I first encountered BASIC.

Most approachable book I've ever found on the language was "My Computer Likes Me (When I Speak In BASIC)", or something like that.

For extra credit and mondo greybeard rep points: BASIC is an acronym (maybe a backronym, but whatever), for Beginner's All-purpose Symbolic Instruction Code.

I hated BASIC when I first ran into it, because I learned FORTRAN IV first, and BASIC seemed incredibly primitive. It was a long time before I got comfortable with the idea that BASIC was actually a lot easier to use for the kind of casual numbercrunching it was designed to do.

Solution 3

It's an abbreviation for "remark", valid only at the beginning of the line (unlike vb.net), after the line number (if any).

Share:
18,861

Related videos on Youtube

user1319501
Author by

user1319501

Updated on November 07, 2020

Comments

  • user1319501
    user1319501 over 3 years

    Here's a blast from the past: what does "REM", the comment marker, stand for in BASIC? What's the origin of this non-obvious term?

    • Jon Limjap
      Jon Limjap over 14 years
      REM is also used by DOS Batch files for the very same purpose -- comments.
    • Jörg W Mittag
      Jörg W Mittag over 14 years
      BTW: using REM as an abbreviation for remark might be non-obvious, but it certainly beats using // as an abbreviation for comment.
  • Stefano Borini
    Stefano Borini over 14 years
    confirmed. it's for REMark. I had it on my BASICv2 C64 manual, and since I was like 6 yo at that time, things got stuck in my head pretty well.
  • Stefano Borini
    Stefano Borini over 14 years
    that's not true. everybody know the real answer is 42.
  • Scott Dorman
    Scott Dorman over 14 years
    Confirmed again from the "Commodore 128 Personal Computer System Guide", first published in 1985, section 3.2.5 Rules for Typing BASIC Language Programs, bullet #7: The computer ignores anything following the letters REM on a program line. REM stands for REMark. You can use the REM statement to put comments in you program that tell anyone listing the program what is happening at a specific point. (commodore.ca/text/c128_1-15.txt)
  • michelson
    michelson over 14 years
    I'll take this back a step further. The Dartmouth BASIC manual from 1964 states "An important part of any computer program is the description of what it does, and what data should be supplied. This description is commonly called documentation. One of the ways a computer program can be documented is by supplying remarks along with the program itself. BASIC provides for this capability with the REM statement." (bitsavers.org/pdf/dartmouth/BASIC_Oct64.pdf)
  • Jeremy Logan
    Jeremy Logan over 14 years
    I thought it was "REMember". Don't know why, I guess because I was about 8 when learning it and that was the first thing that popped into my head.
  • eoredson
    eoredson over 7 years
    In some Basic dialects REM required a space, then the remark. in some, it did not so you could say REMARKABLE program here:
  • eoredson
    eoredson over 7 years
    Some Basics also used meta-commands such as REM $DYNAMIC or REM $STATIC
  • BlackJack
    BlackJack almost 2 years
    Everything after the first comma is true for a specific BASIC implementation you don't specify. In all BASIC dialects I know of, that allow more than one statement per line, a REM can be preceded by other statements.