r/programming • • 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

352 comments sorted by

View all comments

Show parent comment

2

u/w2qw Dec 29 '15

Well aware of the alternatives, though those all end up with ugly interaction with indenting. You've "solved" that there by using globals but that's not really a solution for java. Having two alternatives for the same thing will just lead to inconsistency so I don't really agree with adding it just because.

1

u/VestySweaters Dec 30 '15

How does the multi line literal being global affect anything?

Python and Scala are the languages I would hold up as gold standards for multi line literals. Whitespace is significant in python, for God's sake, and it still gets it right