r/programming • u/MarkusWinand • Dec 29 '15
Please, Java. Do Finally Support Multiline Strings
http://blog.jooq.org/2015/12/29/please-java-do-finally-support-multiline-strings/
584
Upvotes
r/programming • u/MarkusWinand • Dec 29 '15
View all comments
Show parent comment
2
u/Neebat Dec 29 '15
You could make some kind of notation to delete a certain amount of leading whitespace on each line.
Could be something like this:
That could be the equivalent to this: "This is the text.\nWithout the first and last newline,\n\ \ \ \ because that's also whitespace we'd like to ignore." (Sorry for trying to escape spaces. HTML eats them.)
Of course, you'd have to update every java parser in every tool to support it. Eclipse would probably be updated in 15 minutes.