Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: markspace <-@.> Newsgroups: comp.lang.java.programmer Subject: Re: boolean to int : was char to decimal Date: Fri, 06 May 2011 08:30:34 -0700 Organization: A noiseless patient Spider Lines: 10 Message-ID: References: <92ea64F3avU1@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 6 May 2011 15:30:44 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="l8hxu7VxWTF0R70MQnZDgg"; logging-data="12952"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+IIVP3EFY3RXKdpyOSqZUI/KqUbnoQXsE=" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 In-Reply-To: Cancel-Lock: sha1:LxElf++yrWTRoUwjHtHIHt8a8rQ= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3690 On 5/6/2011 7:07 AM, markspace wrote: > Overall, I feel the last one, the if-else in Java, is the most clear and > maintainable. Given your apparent confusing trying to translate the C++ > version literally, I think I'd say that promoting booleans to ints is a > bad idea, as it produces crap. And my confusion too, since I think Patricia has the control flow correct.