Robert Bradshaw, 03.11.2010 08:52:
> On Wed, Nov 3, 2010 at 12:42 AM, Stefan Behnel wrote:
>> Ok, then let's support arbitrary expressions for read-only properties and
>> self-attribute-only expressions for normal (getter+setter) properties.
>>
>> Should it be
>>
>>      property x from readonly expr
>>
>> or
>>
>>      property readonly x from expr
>>
>> ? I lean towards the first, once again due to the simpler grammar.
>>
>> Then we get
>>
>>      property x from readonly anyexpr
>>
>> and
>>
>>      property x from self.attribute
>>
>> (i.e. "from" followed by a dotted name, which may be "readonly", which
>> would then be followed by an arbitrary expression)
>
> Sound good to me. It's possible that index expressions could support
> setters as well.

Hmm, right, and they may really make a useful feature. That'll be trickier 
to test, though, as it can no longer be done that easily in the parser (I 
think).

Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to