The Raw String literals, new form of literal supposed to ease Java development with multiple lines of source code and doesn't interpret escape sequences, may be axed from the Java Development Kit (JDK) 12.
While the programming capability was to make it pretty easier to express sequences of characters, by supplying strings targeted for grammars that span several lines of code, but the team has expressed doubt that the feature would be fully ready by 19, March 2019, when Java 12 will be released.
Brian Goetz, Java language architect for Oracle, wrote in a email that it preview in its current state would be to the detriment of the language. And they’re of course disappointed that it will take slightly longer for the feature to make it into the language, but that’s the best choice.
Therefore, a proposal has been launched to remove the raw string literals from the planned Java 12 upgrade, with the review period slated for December 18, 2018.
The feedback from the proposal comprise the two-backquote sequence which could be confused for an empty string; with no direct way to start or end a raw string literal with backquote; and unnecessary asymmetry on raw string literals and traditional string literals.
The JDK Enhancement Proposals (JEP) team's decision to drop raw string literals from version 12 of the Java programming language, may perhaps give developers the opportunity to better work out the design and redefine the options.
No comments