While we're lynching features, how bout' them omittable parens?

Daniel Keep daniel.keep.lists at gmail.com
Tue May 19 08:19:10 PDT 2009


Leandro Lucarella wrote:
> Steven Schveighoffer, el 19 de mayo a las 09:54 me escribiste:
>>> So for me, properties are way more than just syntax sugar.
>> AFAIK, this is not enforced by the compiler...
>>
>> I write C# properties that have side effects.
> 
> Well, in D2 it would make sense to make mandatory that properties are pure
> =)

I think that's a dangerous and unnecessarily limiting road to go down.
I don't see any benefit from doing this.

For example, this would make it impossible to implement a property that
lazilly initialised its storage.

  -- Daniel



More information about the Digitalmars-d mailing list