Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 71912 invoked from network); 14 Jan 2002 21:07:30 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 14 Jan 2002 21:07:30 -0000 Received: (qmail 23391 invoked by uid 97); 14 Jan 2002 21:07:31 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 23362 invoked by uid 97); 14 Jan 2002 21:07:30 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 23351 invoked from network); 14 Jan 2002 21:07:30 -0000 Message-ID: <3C4445A9.2060401@marni.otago.ac.nz> Date: Tue, 15 Jan 2002 10:07:21 -0500 From: Mariusz Nowostawski User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7+) Gecko/20011222 X-Accept-Language: en-us MIME-Version: 1.0 To: Ant Developers List Subject: Re: Ant Coding guidelines References: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Steve Cohen wrote: > [...] Since I've > moved over to java, I have tended toward a style of trying to always > prefix fields with "this.", whether "necessary" or not. That seems > stronger than "m_" even if it's more typing since it means something in > the language, it's not just a convention. It sort of surprises me that > I have come to prefer this style - earlier I wouldn't have been caught > dead using a style like this. But I do prefer it now. Especially when > I'm reading code. > > Does the Sun style guide say anything about this? Same here. In our research team we are using "this." as a prefix and we all like it a lot: simple, uniform, verbose and explicit. Very easy to read someone else's code. Different editors usually highlight the phrase "this." which makes it even more explicit and nice to use. No chance to get into nasty errors or name conflicts. It is similar to the use of "final" - it is part of the language, it improves style and reduces errors, thus it should be used. To me it should be the preferred style (Sun Jawa style) but I do not think this is the case though. Mariusz -- To unsubscribe, e-mail: For additional commands, e-mail: