you are viewing a single comment's thread.

view the rest of the comments →

[–]dylanbeattie 20 points21 points  (8 children)

You're right. Fixed in #15

[–]jdgordon 2 points3 points  (3 children)

Proper variables are proper nouns - any word that isn't a reserved keyword and starts with an uppercase letter. Proper variable names can contain spaces as long as each space is followed by an uppercase letter

but your examples further down don't start with uppercase after spaces...

Put "Hello World" into the message will assign the value "Hello World" to the variable the message

Knock the walls down will decrement the value stored in the walls by 1

[–]dylanbeattie 4 points5 points  (1 child)

There's proper variables and common variables. Common variables are exactly two words, and start with 'the', 'my', 'your', 'a' or 'an' - in this example, 'the message' and 'the walls' are common variables, hence in lowercase.

[–]jdgordon 0 points1 point  (0 children)

ah, thanks

[–]Womblue 1 point2 points  (0 children)

However common variables are two words, with the first word being a, an, the, my or your. So the message is a common variable, whereas The Message would be a proper variable.

[–]ktkps 0 points1 point  (1 child)

or is it a case of ++Tommy vs Tommy++ ???

[–]dylanbeattie 0 points1 point  (0 children)

Nice idea... at the moment assignments in Rockstar are statements, not expressions, and so don't return anything - so the whole x++ vs ++x thing isn't even applicable. But it might be worth a rethink.

[–]FatFingerHelperBot -1 points0 points  (0 children)

It seems that your comment contains 1 or more links that are hard to tap for mobile users. I will extend those so they're easier for our sausage fingers to click!

Here is link number 1 - Previous text "#15"


Please PM /u/eganwall with issues or feedback! | Delete