We read about using dollar sign in class name, but that dosen't work! Why? (Read the description) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

We read about using dollar sign in class name, but that dosen't work! Why? (Read the description)

class Programmer -> works class $Programmer -> dosen't work class Programmer$Vibhu -> works class $ -> dosen't work Remember: This is not a syntax error. This is neither a Logical error, nor runtime error! Try it yourself! So, Is it a bug?

17th Jul 2016, 1:17 PM
Vibhu Agarwal
Vibhu Agarwal - avatar
1 Answer
0
new languages come from older languages and sepcial characters at the beginning of a variable name can mean something else. Tradition and ascii vs unicode. every character is important.
17th Jul 2016, 8:14 PM
oz10h
oz10h - avatar