Here&#39;s one I like to use:<br><br><font size="2">if (0 == this){<br>
&nbsp;&nbsp; then = that;<br>
}</font><br><br>If you accidentally use &quot;=&quot; instead of &quot;==&quot;, you will get an error.<br><br>-Bob<br><br><div class="gmail_quote">On Fri, Dec 19, 2008 at 9:32 AM, Paul Ramsey <span dir="ltr">&lt;<a href="mailto:pramsey@cleverelephant.ca">pramsey@cleverelephant.ca</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">We&#39;re rapidly approaching the level of Holy War :)<br>
I think that people should be free to do &quot;what works&quot; within the<br>
minimal stylistic constraints of an astyle rule... we can talk<br>
paren-padding until we&#39;re blue in the face (I&#39;m a padder, sue me:)<br>
<font color="#888888"><br>
P.<br>
</font><div><div></div><div class="Wj3C7c"><br>
On Fri, Dec 19, 2008 at 9:22 AM, Obe, Regina &lt;<a href="mailto:robe.dnd@cityofboston.gov">robe.dnd@cityofboston.gov</a>&gt; wrote:<br>
&gt; So does that mean Mark will have to give up his love for<br>
&gt;<br>
&gt; if (this) then = that;<br>
&gt;<br>
&gt; Unconsciously I do<br>
&gt;<br>
&gt; if (this){<br>
&gt; &nbsp; &nbsp;then = that;<br>
&gt; }<br>
&gt;<br>
&gt; Though I can live with (except those spaces before and after this. &nbsp;Do we<br>
&gt; really need that?)<br>
&gt;<br>
&gt; if ( this )<br>
&gt; {<br>
&gt; &nbsp; then = that;<br>
&gt; }<br>
&gt;<br>
&gt;<br>
&gt; -----Original Message-----<br>
&gt; From: <a href="mailto:postgis-devel-bounces@postgis.refractions.net">postgis-devel-bounces@postgis.refractions.net</a> on behalf of Paul Ramsey<br>
&gt; Sent: Fri 12/19/2008 11:47 AM<br>
&gt; To: PostGIS Development Discussion<br>
&gt; Subject: Re: [postgis-devel] STYLE<br>
&gt;<br>
&gt; The ansi requirement unfortunately makes this worse:<br>
&gt;<br>
&gt; if ( this )<br>
&gt; {<br>
&gt; &nbsp; then = that;<br>
&gt; }<br>
&gt; else<br>
&gt; {<br>
&gt; &nbsp; those = them;<br>
&gt; }<br>
&gt;<br>
&gt; BTW, the reason I spec&#39;ed ansi is just because it seems to be the<br>
&gt; majority of the existing code base. What comes out of my hands<br>
&gt; unconciously is kr.<br>
&gt;<br>
&gt; if ( this ) {<br>
&gt; &nbsp; then = that;<br>
&gt; }<br>
&gt;<br>
&gt; On Fri, Dec 19, 2008 at 7:41 AM, Obe, Regina &lt;<a href="mailto:robe.dnd@cityofboston.gov">robe.dnd@cityofboston.gov</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt; Alright if you like it perhaps I was a bit too harsh and that isn&#39;t the<br>
&gt;&gt; one<br>
&gt;&gt; that bothers me the most. How about this concession.<br>
&gt;&gt;<br>
&gt;&gt; //OKAY<br>
&gt;&gt; if (!binary) free(v);<br>
&gt;&gt;<br>
&gt;&gt; //NOT OKAY<br>
&gt;&gt; if (!binary)<br>
&gt;&gt; &nbsp; free(v);<br>
&gt;&gt;<br>
&gt;&gt; //NOT OKAY<br>
&gt;&gt; if (!binary) free(v); printf(...);<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; The issue I have with the NOT OKAY is that its too easy for a python<br>
&gt;&gt; programmer or some other language that relies on indentation to screw this<br>
&gt;&gt; up.<br>
&gt;&gt;<br>
&gt;&gt; -----Original Message-----<br>
&gt;&gt; From: <a href="mailto:postgis-devel-bounces@postgis.refractions.net">postgis-devel-bounces@postgis.refractions.net</a> on behalf of Mark<br>
&gt;&gt; Cave-Ayland<br>
&gt;&gt; Sent: Fri 12/19/2008 10:34 AM<br>
&gt;&gt; To: PostGIS Development Discussion<br>
&gt;&gt; Subject: Re: [postgis-devel] STYLE<br>
&gt;&gt;<br>
&gt;&gt; Obe, Regina wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; This I mentioned to Mark offlist, but since its sort of a STYLE issue I<br>
&gt;&gt;&gt; thought I would restate it here.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I know C programmers are in love with doing this short-cut.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; if (!binary) free(v);<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I hate it. &nbsp;It drives me crazy because its too prone to error when<br>
&gt;&gt;&gt; someone comes<br>
&gt;&gt;&gt; by and tries to stuff another statement in there and forgets to put the<br>
&gt;&gt;&gt; bracket in.<br>
&gt;&gt;<br>
&gt;&gt; Aaargh - I really like this and use it a lot :(<br>
&gt;&gt;<br>
&gt;&gt; The convention is fairly easy to read: if there are no {}s then only the<br>
&gt;&gt; next statement is considered part of the if... or else... clause. Does<br>
&gt;&gt; that help at all?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ATB,<br>
&gt;&gt;<br>
&gt;&gt; Mark.<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Mark Cave-Ayland<br>
&gt;&gt; Sirius Corporation - The Open Source Experts<br>
&gt;&gt; <a href="http://www.siriusit.co.uk" target="_blank">http://www.siriusit.co.uk</a><br>
&gt;&gt; T: +44 870 608 0063<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; postgis-devel mailing list<br>
&gt;&gt; <a href="mailto:postgis-devel@postgis.refractions.net">postgis-devel@postgis.refractions.net</a><br>
&gt;&gt; <a href="http://postgis.refractions.net/mailman/listinfo/postgis-devel" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-devel</a><br>
&gt;&gt;<br>
&gt;&gt; ________________________________<br>
&gt;&gt;<br>
&gt;&gt; The substance of this message, including any attachments, may be<br>
&gt;&gt; confidential, legally privileged and/or exempt from disclosure pursuant to<br>
&gt;&gt; Massachusetts law. It is intended solely for the addressee. If you<br>
&gt;&gt; received<br>
&gt;&gt; this in error, please contact the sender and delete the material from any<br>
&gt;&gt; computer.<br>
&gt;&gt;<br>
&gt;&gt; ________________________________<br>
&gt;&gt;<br>
&gt;&gt; Help make the earth a greener place. If at all possible resist printing<br>
&gt;&gt; this<br>
&gt;&gt; email and join us in saving paper.<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; postgis-devel mailing list<br>
&gt;&gt; <a href="mailto:postgis-devel@postgis.refractions.net">postgis-devel@postgis.refractions.net</a><br>
&gt;&gt; <a href="http://postgis.refractions.net/mailman/listinfo/postgis-devel" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-devel</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt; _______________________________________________<br>
&gt; postgis-devel mailing list<br>
&gt; <a href="mailto:postgis-devel@postgis.refractions.net">postgis-devel@postgis.refractions.net</a><br>
&gt; <a href="http://postgis.refractions.net/mailman/listinfo/postgis-devel" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-devel</a><br>
&gt;<br>
&gt;<br>
&gt; ________________________________<br>
&gt;<br>
&gt; The substance of this message, including any attachments, may be<br>
&gt; confidential, legally privileged and/or exempt from disclosure pursuant to<br>
&gt; Massachusetts law. It is intended solely for the addressee. If you received<br>
&gt; this in error, please contact the sender and delete the material from any<br>
&gt; computer.<br>
&gt;<br>
&gt; ________________________________<br>
&gt;<br>
&gt; Help make the earth a greener place. If at all possible resist printing this<br>
&gt; email and join us in saving paper.<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; postgis-devel mailing list<br>
&gt; <a href="mailto:postgis-devel@postgis.refractions.net">postgis-devel@postgis.refractions.net</a><br>
&gt; <a href="http://postgis.refractions.net/mailman/listinfo/postgis-devel" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-devel</a><br>
&gt;<br>
&gt;<br>
_______________________________________________<br>
postgis-devel mailing list<br>
<a href="mailto:postgis-devel@postgis.refractions.net">postgis-devel@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-devel" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-devel</a><br>
</div></div></blockquote></div><br>