A JDK enhancement proposal suggests the use of hyphenated keywords to denote new features in the Java language, with the goal of ensuring compatibility and readability in new keywords as suitable keyword tokens become increasingly scarce.
The draft JDK enhancement proposal for keyword management notes that new features in the Java language often require new keywords, but new keywords risk breaking existing programs. For balancing readability and compatibility, a new type of keyword could be used, namely a hyphenated keyword that is a compound of identifiers and pre-existing keywords. Examples cited were
break-with, and s
To read this article in full, please click here