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