Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: How do you pronounce variable names?

by moklevat (Priest)
on Feb 18, 2008 at 18:22 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-04-16 12:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found