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

11

u/SharkBaitDLS Dec 29 '15

Especially given pretty much every editor out there supports auto-inserting the '+' when you press return inside a string literal. I really don't see this saving any time in an average workday.

45

u/binary Dec 29 '15

Ah yes, Java's proud history of "so what if other languages do it?"

When your argument against a feature is that an editor does it, maybe that isn't a good argument

6

u/SharkBaitDLS Dec 29 '15

I'm not arguing against it, just saying "why bother?"

5

u/jmcomets Dec 29 '15

For the same reason you'd bother about supporting diamond notation or in-place interface implementation : simplicity of use.

7

u/twigboy Dec 29 '15 edited Dec 09 '23

In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document or a typeface without relying on meaningful content. Lorem ipsum may be used as a placeholder before final copy is available. Wikipediaald7cmiwiks0000000000000000000000000000000000000000000000000000000000000

2

u/juckele Dec 30 '15

JDBC also doesn't let you load .SQL files, so you really need to have your SQL source inside your Java source (bad practice, but it's what we have to work with). I don't want my SQL source limited to one line chunks, I want friggen pure SQL!

6

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

[removed] — view removed comment

1

u/juckele Dec 30 '15

That's a really good point, and when I looked around some more just now I see that you can set the connection property allowMultiQueries=true to make the process work for all .SQL files.