4 ms·
What if it was only for things in the same "class" (wrong word, but I'm not sure what to actually call it)? So variables only with variables, classes only with
by TheLoneWolfling 12y ago
What if it was only for things in the same "class" (wrong word, but I'm not sure what to actually call it)?
So variables only with variables, classes only with classes, functions only with functions?
(I.e. you can define a class called Arduino (bad name, by the way) and a variable named arduino, and it won't complain, but if you then try to define a class called "ARDUINO" or a variable named "ARDUINO" it will error out.)
- marcosdumay 12y agoThat would make a class of error impossible, at the cost of losing consistency (in most modern languages, the class name is just a variable that holds a class value). I'm not decided if I like it or not.