POV-Ray : Newsgroups : povray.pov4.discussion.general : Random POV-Ray 4 SDL proposal, #2 : Re: Random POV-Ray 4 SDL proposal, #2 Server Time
24 Apr 2024 22:27:03 EDT (-0400)
  Re: Random POV-Ray 4 SDL proposal, #2  
From: clipka
Date: 14 Dec 2015 15:31:03
Message: <566f2707$1@news.povray.org>
Am 14.12.2015 um 15:50 schrieb scott:
>>> All object properties are set via identifier, rather than anonymlously
>>> by position; for instance, instead of
>>>
>>>    sphere { CENTER, RADIUS }
>>>
>>> it will be:
>>>
>>>    sphere {
>>>      center: EXPRESSION ;
>>>      radius: EXPRESSION ;
>>>    }
>>>
>>
>> I personally like this form though more verbose. Any syntax more
>> explicit about what property is being set is much clearer to new users
>> especially - expect many periodic users too.
> 
> Why not allow both styles? Is there any benefit to forcing one way or
> the other?

Absolutely: Mandating that all properties be identified by name rather
than position makes it much easier to split the language definition into
a simple basic syntax on one hand and a data hierarchy model on the
other hand.


Post a reply to this message

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