Path: csiph.com!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Sebastian Newsgroups: comp.lang.java.programmer Subject: Re: multi-line Strings Date: Wed, 12 Dec 2012 10:40:14 +0100 Organization: albasani.net Lines: 23 Message-ID: References: <7f36342c-2331-4484-874b-4a0f8953f160@googlegroups.com> <50c61150$0$293$14726298@news.sunsite.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news.albasani.net OSovBD6KsV9l/vK0hpqiwL5f6SwXSIFgO3q2ff6Sizn61dfsHbbMgsWBYiopbWhkmJKW2oUqq6/sM0EQeHehewILmsxKm35gkzItoySTc+KgAFxZT5LzDCwBM7P5Id8H NNTP-Posting-Date: Wed, 12 Dec 2012 09:37:58 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="4MoEZ6Wqi6IAh0zgi+P7jHQZcyr995rR64B5aCNdbHRoaZ0PLJxrmwq/cGKDsR09xEJdKQW9SMeGvGRVa1sJI9rOEbCQ22nuEGB+byj255NdG62FUyKVXdQSfIeqgWhe"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 In-Reply-To: Cancel-Lock: sha1:bHBi4ehL3VCPywggpo/XxmkUlkk= Xref: csiph.com comp.lang.java.programmer:20274 On 12/10/2012 8:43 AM, Arne Vajhøj wrote: > > It could be added.... > > But I would not consider it a high priority. > > It is most useful for demo code. > > For real code then large chunks of texts would usually > be stored externally (file, DB etc.) not embedded into > the code. I think nobody has mentioned this funny little hack, which just might be suitable for demo code and unit tests. It requires that the source code using the multi-line string be accessible in the file system at run time. http://blog.efftinge.de/2008/10/multi-line-string-literals-in-java.html I do believe the blog was posted in a humorous spirit. -- Sebastian