ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  10 Reasons We Need Java 3.0
Subject:   Mandatory 'this.'
Date:   2002-08-01 22:34:42
From:   bayard
While I agree with sentiments to steal good ideas from C#, and to refactor many parts of the JDK, the biggest issue for me would be a change in the Java semantics itself. After spending a short time prototyping PHP OO rather than using JSP, I have become addicted to the safe nature of having to use this-> before every member variable.


I would enforce this in the Java spec and make it mandatory for any access to a member variable to be preceded with this.


A form of naming convention I guess.