ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am from the United States, so I never gave it much thought until now, but I was wondering if the use of the dollar sign ($) in so many programming languages bothers people from other countries. It must feel odd, just like if I were inserting the Yen sign (¥) into my code constantly.
Hmm... It doesn't bother me. Most programming languages (all I know actually) are based on English so it doesn't seem so odd there. I don't usually even think of it as a DOLLAR sign, but rather a 'value' sign because that's more or less its meaning in most programming languages I've seen. I actually encountered this symbol in the context of programming much sooner than as a symbol of USD ( I didn't have much interest in economy when I was 8 ). Actually I used to wonder why the americans chose to use 'that programming character' as a symbol for their currency (history was never one of my talents either). I have been seeing '$' in programs for so long that it doesn't seem odd to me at all.
I don't usually even think of it as a DOLLAR sign, but rather a 'value' sign because that's more or less its meaning in most programming languages I've seen.
I learned to program on the Commodore 64, Microsoft Basic V2. In that language the $-symbol was used to declare a variable as a string variable. Since then I never think of dollars when I see it in program code.
I learned to program on the Commodore 64, Microsoft Basic V2. In that language the $-symbol was used to declare a variable as a string variable. Since then I never think of dollars when I see it in program code.
Hmmmm, BASIC... My first programming experience was BASIC on ZX Spectrum. Had a lot of fun with that. Then I started with pascal, which I didn't like after my previous exposure to BASIC (I mean, you don't number your statements in pascal?!? How do you tell goto where the loop begins?). My BASIC programs kinda looked like those Dungeons & Dragons kind of books (If you rolled 16 go to page 138).
I don't even remember what meaning the dollar sign had there. I actually don't remember anything about BASIC. I guess my mind just blocked those memories to protect itself or something... The only thing remaining is those freaky, creepy flashbacks I see whenever I eat spaghetti.
I mean, you don't number your statements in pascal?!? How do you tell goto where the loop begins?
Exactly what I thought when I saw a friend on his Amiga coding in Amiga Basic (I think that was what it was called). Gave me serious problems when I later tried to port a program to my Atari ST with Omicron Basic.
Me either, I don't think of $ as dollar sign in programming, same with @, when I declare array in perl script like @my_array, I don't think I am sending email to my_array host
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.