5 ms·
Not sure about that. The regex for variable identifiers shows that Ruby is alone on the island of languages that force a lowercase first character.
by rll 14y ago
Not sure about that. The regex for variable identifiers shows that Ruby is alone on the island of languages that force a lowercase first character.
- aaronblohowiak 14y agoGo uses casing for semantic meaning as well. Also, you can use non-A-Z in ruby source. http://rosettacode.org/wiki/Unicode_variable_names#Ruby http://rosettacode.org/wiki/Unicode_variable_names#Ruby
- objclxt 14y agoGo is missing from the analysis (sadly, because it's definitely more popular than some of the languages listed!) - but yes, casing is used to determine the scope of your variables. It's actually a rather elegant solution (I find Go's syntax to be generally elegant, but YMMV)