Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: How do you pronounce variable names?

by moklevat (Priest)
on Feb 18, 2008 at 18:22 UTC ( #668634=note: print w/replies, xml ) Need Help??

in reply to How do you pronounce variable names?

FWIW, based on what I picked up in the computer lab in the late 1980s, I used to always read $somescalar as "string somescalar". Now, after some effort to re-learn it, I read it as "scalar somescalar" most of the time. After looking up some old punctuation poetry it appears that "dollar" was the common idiom back then, so I guess I have no idea where "string" came from in my lexicon.

Update:Apparently I learned it from BASIC, though that would have been much earlier than the late 80s, but it stuck.

  • Comment on Re: How do you pronounce variable names?

Replies are listed 'Best First'.
Re^2: How do you pronounce variable names?
by Aim9b (Monk) on Feb 18, 2008 at 18:43 UTC
    Probably from BASIC. Early versions required String field names to start with a $ (ie $a, $bc, etc.) If it didn't, it was assumed numeric and you usualy ended up with a letter that resulted in a zero. This is from MBASIC, circa 1975. Also, field names were limited to only two characters back then, and if they started with i thru r they were considered integer, otherwise floating. How did we ever survive? ;-)
      In every BASIC I'm familiar with, the $ came at the *end* of the variable. And this thread reminds me of a thread I started many years ago in comp.lang.perl.misc about pronunciation. Much of the advice there is good, the obvious error being to pronounce the # sign as "pound".
Re^2: How do you pronounce variable names?
by kyle (Abbot) on Feb 18, 2008 at 18:36 UTC

    I used to call "$" "string" because that's what it was called in BASIC. A string variable FOO$ was read, "foo string".

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://668634]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2021-04-18 14:25 GMT
Find Nodes?
    Voting Booth?

    No recent polls found