POV-Ray : Newsgroups : povray.unofficial.patches : MegaPov 0.4, macros trouble : Re: MegaPov 0.4, macros trouble Server Time
2 Sep 2024 18:20:28 EDT (-0400)
  Re: MegaPov 0.4, macros trouble  
From: Ron Parker
Date: 3 Feb 2000 08:43:34
Message: <slrn89j1fh.v8.ron.parker@ron.gwmicro.com>
On 3 Feb 2000 03:14:41 -0500, Nieminen Juha wrote:
>Jon A. Cruz <jon### [at] geocitiescom> wrote:
>: Could I bug you to try to always use braces, even for single line
>: bodies?
>
>:   if(Ch=='\n') {
>:           ungetc ('\r', (FILE *) File->Data);
>:   }
>
>  Good idea, as long as you don't put the braces that way.
>  The opening brace of a block should be at the beginning of the block, not
>at the end of the previous line.

I think this belongs in the "For your information" thread, as it's a 
religious battle.  FWIW, the indenting style above is at least as accepted
as the one you're advocating, for the simple reason that it lets you fit
more code in a screenful without sacrificing much in the way of readability.

-- 
These are my opinions.  I do NOT speak for the POV-Team.
The superpatch: http://www2.fwi.com/~parkerr/superpatch/
My other stuff: http://www2.fwi.com/~parkerr/traces.html


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.