POV-Ray : Newsgroups : povray.general : Pov 4.00 question : Re: Possible POV Object Scheme (was Re: Pov 4.00 question) Server Time
7 Aug 2024 03:25:28 EDT (-0400)
  Re: Possible POV Object Scheme (was Re: Pov 4.00 question)  
From: Hermann Voßeler
Date: 14 Feb 2002 06:56:03
Message: <3C6BA3F8.7010104@webcon.de>
Warp wrote:

> 
>   I don't understand why it would be "more powerful" and "cleaner" with
> no '{'s and '#'s.
>   Specially the lack of '{'s would make it uglier and harder to write and
> read.
>   (No, I *DON'T* want to start writing 'begin' and 'end' like in Pascal.)
> 
> 

may I throw in my $.02 on this?

do you know the haskell (funcitonal) programming language?


they use a indentation rule to figure out when a statement belongs to 
a block. As long as you indent new lines more than the line that 
started the block, the compiler knows you want to stay within that 
block. As soon as you indent lesser, it adds a implicit "}".
Works great.

For povray SDL this whould mean:

object sphere
   <0 0 1> 1.0
   texture
      pigment colour rgb(1, 1, 0)
      finish ambient 0.2
             diffuse 0.6
             metallic

camera location <0 0 0>
        look_at <0 0 1>




Post a reply to this message

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