Delete comment from: Stephen Colebourne's blog
initially this sounded not a bad idea. but after reading the problems and their rather not convincing solutions, i would rather stay with the current solution. because,
- current java ensures there is no white space problem
- it is easy to automatically format the text.
- modern ide's like IDEa are really smart about multi line string handling.
- it is not that common to use "This string\nspans three\nlines"; type of Strings.
however, especially when IDE's are not there, indeed writing SQL queries, or regular expressions become sort of a pain. maybe some other type of syntax could be introduced
Jan 27, 2008, 11:16:37 PM
Posted to Java 7 - Multi-line String literals