new DIP5: Properties 2

Kagamin spam at here.lot
Wed Jul 29 01:30:39 PDT 2009


Lars T. Kyllingstad Wrote:

> Andrei Alexandrescu wrote:
> > I have a dream.
> > 
> > * Parameterless functions still can be called without "()". People will 
> > realize that it's a prejudice to believe that this impedes code 
> > understanding, and their eyes and wrists will thank them.
> > 
> > * The syntax "foo = bar" is rewritten into "foo(bar)" IF AND ONLY IF the 
> > expression "auto __x = foo, __x = bar" is compilable.
> 
> 
> I like this. Would it also make sense to require that the getter is 
> declared as const or immutable?

Not quite. See DIP2.



More information about the Digitalmars-d mailing list