When referencing class variables, why do people prepend it with this
? I\'m not talking about the case when this
is used to disambiguate from method
I most often see people do this because it triggers the intellisense. I personally prefer to leave off the "this." because it creates more code without any value.
They are perhaps a Python programmer and get tortured/lost/confused without an explicit this.
"this" prevents confusion with instance variables with the same name in the parent class/es.
It's pretty much the complement to prepending with "super".