11 ms·
For example in C++ where it's implicit most code styles require adding prefix "m_" or something similar to indicate that the variable is a class member. So the
by hawski 10y ago
For example in C++ where it's implicit most code styles require adding prefix "m_" or something similar to indicate that the variable is a class member.
So then I expect the same would happen in Python and JavaScript. I don't think it would be better that way.
- gpderetta 10y agoExactly. Implicit 'this' also complicates the lookup rules. explicit 'this' should have been a requirement in c++ (and a reference, not a pointer). edit: Also, it is already required for dependent names in templates.