<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-336308386934546555.post4917424370978974063..comments</id><updated>2010-01-28T21:40:02.342+08:00</updated><title type='text'>Comments on C for Coding: Java: Why-oh-why still no multi-line strings?</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.cforcoding.com/feeds/4917424370978974063/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/336308386934546555/4917424370978974063/comments/default'/><link rel='alternate' type='text/html' href='http://www.cforcoding.com/2010/01/java-why-oh-why-still-no-multi-line.html'/><author><name>William Shields</name><uri>http://www.blogger.com/profile/18356811199950883367</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-336308386934546555.post-7853496558089488087</id><published>2010-01-28T21:40:02.342+08:00</published><updated>2010-01-28T21:40:02.342+08:00</updated><title type='text'>Seriously, this is why java kind of bites. 

I pre...</title><content type='html'>Seriously, this is why java kind of bites. &lt;br /&gt;&lt;br /&gt;I prefer c# where you can just do String sql = @&amp;quot;BLAHBLABHALJ &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;BA&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;BLALVJAJAPA&amp;quot;; &lt;br /&gt;&lt;br /&gt;And it just works.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/336308386934546555/4917424370978974063/comments/default/7853496558089488087'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/336308386934546555/4917424370978974063/comments/default/7853496558089488087'/><link rel='alternate' type='text/html' href='http://www.cforcoding.com/2010/01/java-why-oh-why-still-no-multi-line.html?showComment=1264686002342#c7853496558089488087' title=''/><author><name>Scott Schulthess</name><uri>http://www.scottschulthess.com</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.cforcoding.com/2010/01/java-why-oh-why-still-no-multi-line.html' ref='tag:blogger.com,1999:blog-336308386934546555.post-4917424370978974063' source='http://www.blogger.com/feeds/336308386934546555/posts/default/4917424370978974063' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-336308386934546555.post-6941479970632364241</id><published>2010-01-03T03:36:06.970+08:00</published><updated>2010-01-03T03:36:06.970+08:00</updated><title type='text'>That's a fairly good question, I think. To be fair...</title><content type='html'>That&amp;#39;s a fairly good question, I think. To be fair, though, it does make it a lot easier to spot when you haven&amp;#39;t closed your string correctly (something which doesn&amp;#39;t report so well in other languages, if I recall). Sort of a toss up, I&amp;#39;d say. I imagine it might just be because of the C/C++ heritage (they don&amp;#39;t support multi-line strings, either). I honestly couldn&amp;#39;t think of a technical reason why it couldn&amp;#39;t be supported.&lt;br /&gt;&lt;br /&gt;This isn&amp;#39;t really a huge issue for me, because using NetBeans, ending a line with an open string automatically does the &amp;#39;&amp;quot; + &amp;#39; business for you. Doesn&amp;#39;t help in the &amp;quot;ugly&amp;quot; department, but it&amp;#39;s something anyway.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/336308386934546555/4917424370978974063/comments/default/6941479970632364241'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/336308386934546555/4917424370978974063/comments/default/6941479970632364241'/><link rel='alternate' type='text/html' href='http://www.cforcoding.com/2010/01/java-why-oh-why-still-no-multi-line.html?showComment=1262460966970#c6941479970632364241' title=''/><author><name>Nathan Crause</name><uri>http://nathan.crause.name</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.cforcoding.com/2010/01/java-why-oh-why-still-no-multi-line.html' ref='tag:blogger.com,1999:blog-336308386934546555.post-4917424370978974063' source='http://www.blogger.com/feeds/336308386934546555/posts/default/4917424370978974063' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-336308386934546555.post-5065119557476463401</id><published>2010-01-02T22:46:29.802+08:00</published><updated>2010-01-02T22:46:29.802+08:00</updated><title type='text'>It depends what you are doing. If it is writing qu...</title><content type='html'>It depends what you are doing. If it is writing queries then query externalisation is something that should be natively supported by the query API such as JDBC or Spring. Writing queries in code or strings makes it a maintenance and testing nightmare. If it is other non-query related strings then depending on the case this can also be externalised. Still I see your point. It would be nice to have. Maybe this can be done in Scala within Java :-)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/336308386934546555/4917424370978974063/comments/default/5065119557476463401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/336308386934546555/4917424370978974063/comments/default/5065119557476463401'/><link rel='alternate' type='text/html' href='http://www.cforcoding.com/2010/01/java-why-oh-why-still-no-multi-line.html?showComment=1262443589802#c5065119557476463401' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.cforcoding.com/2010/01/java-why-oh-why-still-no-multi-line.html' ref='tag:blogger.com,1999:blog-336308386934546555.post-4917424370978974063' source='http://www.blogger.com/feeds/336308386934546555/posts/default/4917424370978974063' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-336308386934546555.post-9065358812164557654</id><published>2010-01-02T18:39:56.478+08:00</published><updated>2010-01-02T18:39:56.478+08:00</updated><title type='text'>In your concatenative example, you should use in-s...</title><content type='html'>In your concatenative example, you should use in-string indentation on lines 1..n instead of trailing spaces on lines 0..n-1!&lt;br /&gt;&lt;br /&gt;Something I often do when declaring literal arguments / lists / dictionaries / etc. is to put each element on its own line with an aligned leading comma, with the first item lead by the open-bracket. It&amp;#39;s legal in Python but not in Ruby...</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/336308386934546555/4917424370978974063/comments/default/9065358812164557654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/336308386934546555/4917424370978974063/comments/default/9065358812164557654'/><link rel='alternate' type='text/html' href='http://www.cforcoding.com/2010/01/java-why-oh-why-still-no-multi-line.html?showComment=1262428796478#c9065358812164557654' title=''/><author><name>Fred Blasdel</name><uri>http://www.blogger.com/profile/08057528812732998703</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.cforcoding.com/2010/01/java-why-oh-why-still-no-multi-line.html' ref='tag:blogger.com,1999:blog-336308386934546555.post-4917424370978974063' source='http://www.blogger.com/feeds/336308386934546555/posts/default/4917424370978974063' type='text/html'/></entry></feed>