Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Eric Sosman Newsgroups: comp.lang.java.programmer Subject: Re: Java blunders Date: Sat, 26 Jul 2014 17:27:59 -0400 Organization: A noiseless patient Spider Lines: 23 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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 26 Jul 2014 21:28:05 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="bd4e1cba8d8592bec5d5ed9e4537fbfd"; logging-data="7040"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19va5ApcD3wXeiCzlxCw+BW" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: Cancel-Lock: sha1:qGEMtPoi+w5wx36uhEobDyj1OSo= Xref: csiph.com comp.lang.java.programmer:29354 On 7/26/2014 4:11 PM, Martin Gregorie wrote: > On Sat, 26 Jul 2014 09:06:28 -0700, Roedy Green wrote: > >> If we did get a distinct concatenation operator, what would it be? >> > Perl and PHP use . as the string concatenation operator. It seems as good > as any to me: > > $ perl -e 'print "My cat " . "sat on" . " the mat.\n";' > My cat sat on the mat. > $ I like it! Let's see: if (clownName.equals("Bozo")) ... (Oops!) As Clemenceau didn't quite say: "What? Must every little operation have its own glyph?" -- esosman@comcast-dot-net.invalid