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
|