Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.glorb.com!news.netfront.net!not-for-mail From: Wanja Gayk Newsgroups: comp.lang.java.programmer Subject: Re: code generation for the ternary operator Date: Tue, 1 Nov 2011 13:36:19 +0100 Organization: Netfront http://www.netfront.net/ Lines: 28 Message-ID: References: <29cla79dh934epr5n27cghvupjk77mpuqr@4ax.com> <11864467.903.1319910601187.JavaMail.geo-discussion-forums@prap37> NNTP-Posting-Host: 77.176.248.103 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: adenine.netfront.net 1320150977 8015 77.176.248.103 (1 Nov 2011 12:36:17 GMT) X-Complaints-To: news@netfront.net NNTP-Posting-Date: Tue, 1 Nov 2011 12:36:17 +0000 (UTC) User-Agent: MicroPlanet-Gravity/3.0.4 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:9335 In article <11864467.903.1319910601187.JavaMail.geo-discussion- forums@prap37>, lewbloch@gmail.com says... > > Still I would try to find proper names for "v1", "v2", "b1" and "b2", > > like for example: > > > > final int optionalHeader = headerPrinted ? 2 : 0; > > final int optionalFooter = footerPrinted ? 2 : 0; > > final int count = lines * 3 + optionalFooter + optionalHeader; > > +1 > > to all of the above. > > I'm immersed in style guidance these days, and that is some of the best style guidance I've seen. Thank you. 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] --- Posted via news://freenews.netfront.net/ - Complaints to news@netfront.net ---