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: Eric Sosman Newsgroups: comp.lang.java.programmer Subject: Re: Java blunders Date: Sun, 03 Aug 2014 11:31:42 -0400 Organization: A noiseless patient Spider Lines: 27 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 3 Aug 2014 15:31:43 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="bd4e1cba8d8592bec5d5ed9e4537fbfd"; logging-data="16296"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+D0nUfk7JtpDLeC9IPJ3n8" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.0 In-Reply-To: Cancel-Lock: sha1:xEKpTZ1M7A9IxKihWtlvVUlXVL8= Xref: csiph.com comp.lang.java.programmer:29518 On 8/3/2014 10:41 AM, Wanja Gayk wrote: > In article , thinbluernime > (thinbluernime3@gmail.com) says... > >>> IMHO Java would be a better language if `switch' were removed >>> altogether, fall-through or not. But that's just MHO, which (clearly) >>> is not widely shared. Meanwhile, I oppose anything that encourages the >>> use of the construct. >> >> If Java existed in a vacuum, so one could always use polymorphism instead >> of "switch", then maybe. > > I'd be interested in one example of a switch statement that cannot be > expressed with if statements. http://www.mickeymantle.com/ (For those unacquainted with the National Game of the United States of Insularity: Mickey Mantle was one of baseball's greatest hitters, renowned for both his power and for his ability to bat both right- and left-handed, an uncommon skill called "switch hitting." Mantle had his flaws, to be sure, but there was nothing iffy about him.) :) -- esosman@comcast-dot-net.invalid