Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Stuart Newsgroups: comp.lang.java.programmer Subject: Re: Java blunders Date: Wed, 30 Jul 2014 08:05:56 +0200 Organization: A noiseless patient Spider Lines: 29 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=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 30 Jul 2014 06:05:55 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="21aac22f8896a48c2c25e23bfecada7e"; logging-data="12562"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/2v8KlkD9un57z/k5fdahGSJM4urIgvb0=" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: Cancel-Lock: sha1:/zAfgGvRn3akmphk5/3/nxe01uQ= Xref: csiph.com comp.lang.java.programmer:29435 On 07/27/14, Roedy Green wrote: > [snip] > >> Some people look on concatenation as addition defined for strings. >> >> I say NO WAY! Concatenation has no relation to addition. If addition >> were defined on strings, it should add numeric strings, not glue them >> together. On 07/28/14, Gene Wirchenko wrote: > But it does. The word "add" is used in English to mean appending > to a string. e.g. Add "ice cream" to the shopping list. I have no problem with using '+' for string concatenation. Apparently others feel differently. In our CS lectures on formal languages the symbol U+2218 (the ordinary symbol for multiplication, but as a small circle) was used. In the language of my dreams one would be able to define their own operators (IMHO it is really sad that you even cannot overload the existing operators in Java). In that case I would choose U+2295 (a plus sign with a circle around it), but apparently some people would use this operator rather for an exclusive-or. Regards, Stuart