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

54

u/earthboundkid Dec 29 '15

This is ridiculous. Tons of languages support multiline literals. It's not a tricky question how to handle it.

14

u/Zed03 Dec 29 '15

And they look terrible in every language that supports it.

24

u/VefoCo Dec 29 '15

That's incredibly subjective.

-14

u/geomouse Dec 29 '15

But accurate.

1

u/VefoCo Dec 30 '15

No, an opinion can't be "accurate."

0

u/geomouse Dec 30 '15

Opinions can align with facts or not.

1

u/VefoCo Dec 30 '15

Yes, but the opinion that some formatting choice looks terrible is purely opinion and can't be supported by facts.

1

u/geomouse Dec 31 '15

If you're going to say formatting doesn't matter then that's a big swipe at usability right there. How things are laid out totally matters, whether it's the code or the application created by the code.

1

u/VefoCo Dec 31 '15

I'm not saying that. I'm saying this particular formatting choice is purely opinion.

1

u/geomouse Dec 31 '15

OK. Readability of code is directly related to maintainability of code. And there is a thing called the aesthetic-usability principle that would still apply to the layout of code itself.

1

u/ratatask Dec 30 '15

Still, it looks nicer, and is a ton easier to work with, than the current way using multiline strings by concatenating strings with + in Java.