Omittable parens is an evil
Robert Fraser
fraserofthenight at gmail.com
Sun Jul 20 08:46:10 PDT 2008
Manfred_Nowak Wrote:
> Robert Fraser wrote:
>
> > A property getter should be idempotent
>
> How can one assure this?
>
> -manfred
>
> --
> Maybe some knowledge of some types of disagreeing and their relation
> can turn out to be useful:
> http://blog.createdebate.com/2008/04/07/writing-strong-arguments/
You can't, of course. You can mark it
invariant, but it may not be in the face of
cached values or non-memory stores. It's
just an assumption many people make and
my own rule whether to make something a
function or a property.
It might be an argument for property
specific syntax' though.
More information about the Digitalmars-d
mailing list