POV-Ray : Newsgroups : povray.pov4.discussion.general : Random POV-Ray 4 SDL proposal, #2 : Re: Random POV-Ray 4 SDL proposal, #2 Server Time
19 Apr 2024 18:18:28 EDT (-0400)
  Re: Random POV-Ray 4 SDL proposal, #2  
From: scott
Date: 15 Dec 2015 04:06:23
Message: <566fd80f$1@news.povray.org>
On 14/12/2015 20:30, clipka wrote:
> 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.

Much easier for who? The users or the developers? Does the benefit for 
the users outweigh the inconveniences of having to look-up/remember and 
type out (or copy and paste) the parameter names every single time?


Post a reply to this message

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