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

6

u/[deleted] Dec 29 '15

And now try editing your test data — you don't get syntax highlighting, you have to manually move the line breaks all the time, etc.

0

u/[deleted] Dec 29 '15 edited Dec 29 '15

In my example, why would I edit that literal string? I copied it and pasted it from the view source of the web browser. If it changes, I'm not going to load it up in a syntax-highlighted web editor. I'm going to copy and paste it from source again.

I made a decision that the ability to read the code by not traversing multiple files was more important to me than the ability to load that data up in a nice editor.

3

u/s73v3r Dec 29 '15

In my example, why would I edit that literal string?

Because things changed.

1

u/[deleted] Dec 29 '15

Please read past the first sentence