Thursday, February 11, 2010

RFE: verbatim string literals in Java

This is very timely following my previous entry:
Bug ID: 4472509 -- Add support for vertabim[sic] string literals

I feel like there are some very good arguments in that discussion. The need is definitely real, and I've had my share of disgruntlement with the multiple strings concatenation idiom.

A syntactic sugar is not in itself bad. Besides, Java has added less useful sugars recently anyway (e.g. static import, which even the official guide cautions to use "very sparingly!").

Verbatim string literals: other modern languages have it; it's time for Java to follow suit.

No comments:

Post a Comment