Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Eric Sosman Newsgroups: comp.lang.java.programmer Subject: Re: multi-line Strings Date: Mon, 10 Dec 2012 13:43:03 -0500 Organization: A noiseless patient Spider Lines: 41 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: 7bit Injection-Date: Mon, 10 Dec 2012 18:43:07 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="ffb8f7085759b339c1002252b48331a4"; logging-data="30582"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19dDdlg9bv87q2YkDZu226+" User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: Cancel-Lock: sha1:kWVShCzvK4vsXVrl0QMNxFJkPRc= Xref: csiph.com comp.lang.java.programmer:20220 On 12/10/2012 1:27 PM, markspace wrote: > On 12/10/2012 9:51 AM, Daniel Pitts wrote: > >> IntelliJ IDEA actually has a way to open just the expression in its own >> edit window. > > > That is indeed a nifty feature. However I believe in principle a > programming language should be readable without something having to > translate it for you. Java regex fails that test often enough where I > think a non-escaped string constant would be a benefit overall. FORTRAN solved this problem half a century ago: 5HHELLO ^^^^^ here's the string 13HHELLO, WORLD. ^^^^^^^^^^^^^ here's the string 3H1233H456 ^^^ ^^^ here are the strings 8H1233H456 ^^^^^^^^ here's the string 12H 1233H456 ^^^^^^^^^^^^ here's the string There was, of course, a certain amount of tedium (not to mention opportunity for error) in manually counting each string, but if Those Thrilling Days Of Yesteryear are what you crave ... -- Eric Sosman esosman@comcast-dot-net.invalid