PROPOSAL: Multiline strings

rssh at gradsoft.com.ua rssh at gradsoft.com.ua
Sat Feb 28 22:50:41 PST 2009


1. Since we have non-empty discussion, I setup wiki with current proposal
('new string literals instead multiline strings (?)')

 http://redmine.gradsoft.ua/wiki/java7stringliterals
  and will try to track all changes as issues.


>
> Alternatively, you could have a special syntax where 4 quotes strips
> out leading whitespace on each line:
>
Added as issue #161 (http://redmine.gradsoft.ua/issues/show/161)

Personally I have no any 'pro' and 'consa' at all. I. e. may be it can be
useful in some context, may be not.
(Add some type of voting ?)

>
> Or you could use the C++ style?

 Ohh, With my experience in maintance C++ systems, this is evil.

>
> Frankly, to me, the big win would actually not be multiline literals,
> but would be escaped String literals.  I'm sick of writing all of my
> regexps with twice as many \ characters as they need.
>

 Added to proposal. (If you will agree, I also will add you to list of
authors)

> Jeremy
>





More information about the coin-dev mailing list