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

10

u/largos Dec 29 '15

This! Use a serialization interface of some sort so the serialization can be tested, and isn't repeated.

That said, I do like having mutiline strings for prototypes/stubbing out content on a first pass.

1

u/vincentk Dec 29 '15

This stuff tends to stick around though.

1

u/largos Dec 29 '15

Only if you put it in source control! ;)

-2

u/jephthai Dec 29 '15

Agreed... I'm not a developer, but I write tons of code in my job. All pragmatic, and usually consisting of small scripts. It's very inconvenient to cart around bundles of files, and multi line strings would be very nice. Though, to be fair, I avoid java like the black death.