Naked dot - accessing object fields through unqualified "." [C1]
Roel Spilker
r.spilker at gmail.com
Mon Mar 30 02:29:17 PDT 2009
You might consider a block scope object to use in the naked dot notation:
with (someObject ) {
.method(.CONSTANT);
}
The "this" could be the default object for methods, the class for static
methods.
That said, the only real benefit for this or class is when you have a local
variable and a field with the same name. In those cases, the this qualifier
is more clear than a naked dot.
IMHO, people that use the this qualifier for all field and method access AND
complain about it being too verbose will find a reason not to like the naked
dot for some reason.
More information about the coin-dev
mailing list