You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Paul Philion <ph...@acmerocket.com> on 2000/10/11 06:59:15 UTC

RE: [Xerces2] Coding Conventions (warning: controversial!) - re: Paul Philion and use of this

Dale -

I meant "always". (Well, really the "vast majority of the time").

- Paul

-----Original Message-----
From: Dale Manny [mailto:dmanny@tidestone.com]
Sent: Tuesday, October 10, 2000 3:13 PM
To: 'xerces-j-dev@xml.apache.org'
Subject: RE: [Xerces2] Coding Conventions (warning: controversial!) -
re: Paul Philion and use of this


Paul:

When you said:

>> Personally, I always use "this.attrName" to refer to an attribute and
either
>> "ClassName.staticAttr" (I rarely use static attributes) or
"CONSTANT_NAME"
>> for static constants.

Did you mean only in cases of conflict or literally 'always'?  At first I
did not think you meant all instances but upon consideration it is not that
much more litter than some other conventions I have seen and certainly
blatantly clear within the language.  It is already my habit to do this when
necessary to distinguish between function parameters and like named
attributes.  Although you say you would not ask someone else to do this, I
am curious as to the result.  Depending on your answer, I may try consistent
explicit use in a file or two of my own and see how I like it.