Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news.netfront.net!not-for-mail From: Wanja Gayk Newsgroups: comp.lang.java.programmer Subject: Re: Java blunders Date: Sun, 3 Aug 2014 16:41:21 +0200 Organization: Netfront http://www.netfront.net/ Lines: 25 Message-ID: References: NNTP-Posting-Host: 77.176.1.151 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: adenine.netfront.net 1407076878 89098 77.176.1.151 (3 Aug 2014 14:41:18 GMT) X-Complaints-To: news@netfront.net NNTP-Posting-Date: Sun, 3 Aug 2014 14:41:18 +0000 (UTC) User-Agent: MicroPlanet-Gravity/3.0.4 Xref: csiph.com comp.lang.java.programmer:29516 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. Kind regards, Wanja -- ..Alesi's problem was that the back of the car was jumping up and down dangerously - and I can assure you from having been teammate to Jean Alesi and knowing what kind of cars that he can pull up with, when Jean Alesi says that a car is dangerous - it is. [Jonathan Palmer] --- news://freenews.netfront.net/ - complaints: news@netfront.net ---