|
|
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
|
|