From: Jim Menard Date: 2002-07-24T05:46:55+09:00 Subject: Re: Syntax "surprise" Paul Brannan writes: > On Wed, Jul 24, 2002 at 12:46:37AM +0900, Mike Hall wrote: > > - compile time string concatenation, "hello" "world" => "helloworld" > > > > I know that some other popular languages like to do that, > > but I think it would be better to leave it as two arguments. > > After all, someone wrote those two literals separately on purpose. > > The following is a common idiom: > > foo("this is a really long string. in fact, it is so long " \ > "that I have to wrap onto multiple lines.") or foo("this is short\ and so is this") The string would include the newline. Jim -- Jim Menard, jimm@io.com, http://www.io.com/~jimm/ "Anyone else picturing Wallace sitting in front of a Rube Goldburgesque workstation, accidentally booting up Netscape and crying out, 'It's the wrong browser, Grommit!' ?" -- Jim Evans in rec.humor.oracle.d