POV-Ray : Newsgroups : povray.advanced-users : union of unions : Re: union of unions Server Time
29 Jul 2024 16:24:54 EDT (-0400)
  Re: union of unions  
From: Philippe Lhoste
Date: 10 Sep 2002 12:47:59
Message: <Xns9285BF048AD6DPhiLho@204.213.191.226>
"Rune" <run### [at] mobilixnetdk> wrote in news:3d7e1089@news.povray.org:

> "Better" is a subjective term. "Widely used" is a rather objective term,
> and very often, things are widely used for a good reason. And I don't
> think there is any doubt about which POV-Ray style is more widely used?
> 
> Rune

IE and Windows are widely used. Is it for a good reason, or because of 
Microsoft politics? Note: I am a Windows user only :-)

Most people in France don't use their turning lights (clignotants). Is it 
for a good reason? (OK, that's a negative example.)

Hamburgers and Coca-Cola are widely consummed. Are they de facto good food?

I can go on and on, with more or less disputable examples... :-)

More on the topic, Kernighan & Richie's C style, ie. with opening soft brace 
on the same line of the statement, were used in their book. It was the 
learning book of most C programmers. That's why their style was so widely 
used. Probably the same for the POV-Ray style...
I used K&R first, then I saw good arguments on the aligned braces style, and 
since then I sticked to it. With modern displays, compactness is not such a 
must. And for a more global view, printing is a solution.

Note: for C code, programs like AStyle can help to switch from a format to 
another. Perhaps we should make something similar for POV-Ray. I wish I have 
one when I look at some code :-)

-- 
--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--
Philippe Lhoste (Paris -- France)
Professional programmer and amateur artist
http://jove.prohosting.com/~philho/


Post a reply to this message

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