new DIP5: Properties 2

Lars T. Kyllingstad public at kyllingen.NOSPAMnet
Wed Jul 29 00:55:56 PDT 2009


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?

-Lars



More information about the Digitalmars-d mailing list