Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Martin Gregorie Newsgroups: comp.lang.java.programmer Subject: Re: Java blunders Date: Sun, 27 Jul 2014 21:18:32 +0000 (UTC) Organization: A noiseless patient Spider Lines: 39 Message-ID: References: <53cef75d$0$291$14726298@news.sunsite.dk> <7s6vs9p395bretqrtdvh9i6til83vfk52p@4ax.com> <53d04b5f$0$291$14726298@news.sunsite.dk> <53d19752$0$295$14726298@news.sunsite.dk> <7lcat9t8j6tuo1v2tm1od8rhvhcgf5i7g9@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 27 Jul 2014 21:18:32 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="e5160e2be48f1ea550cf61512446f525"; logging-data="22829"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+MvSw7Q11wZGk6cg6OjfD/cAG4AQL6xQI=" User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Cancel-Lock: sha1:QoKjaHBwUEozSE3stwuhXmTjKS8= Xref: csiph.com comp.lang.java.programmer:29369 On Sun, 27 Jul 2014 14:46:05 -0400, Eric Sosman wrote: > On 7/27/2014 2:28 PM, Martin Gregorie wrote: >> On Sun, 27 Jul 2014 10:13:16 -0700, Roedy Green wrote: >> >>> On Sat, 26 Jul 2014 20:11:24 +0000 (UTC), Martin Gregorie >>> wrote, quoted or indirectly quoted >>> someone who said : >>> >>>> Perl and PHP use . as the string concatenation operator. It seems as >>>> good as any to me: >>> >>> I wonder if . would conflict with its use in qualification. >>> >> That's possible. [...] > > Yes: An example was offered upthread. Expanding on it: > > class Clown { > static String clownName = "Bozo"; > static { > System.out.println(clownName.equals("Bozo")); > } > } > > What output appears when the class is initialized: "true" or > "Bozofalse"? "False", somewhat obviously, though I don't see what this example has to do with qualififiers, especially given that some compilers understand context-sensitive grammar. In any case, I didn't think this was intended as example code as it looks more like a thinly disguised insult than anything else. -- martin@ | Martin Gregorie gregorie. | Essex, UK org |