Accessors, byLine, input ranges

Justin Johansson no at spam.com
Fri Jan 29 08:48:12 PST 2010


Andrei Alexandrescu wrote:
> Steven Schveighoffer wrote:
>> On Fri, 29 Jan 2010 11:21:28 -0500, Andrei Alexandrescu 
>> <SeeWebsiteForEmail at erdani.org> wrote:
>>
>>> How is f.byLine clearer and less ambiguous than f.byLine()? Or vice 
>>> versa for that matter?
>>
>> Note that properties can be named things other than byLine.
>>
>> -Steve
> 
> What I meant to say is that in the @property landscape the following two 
> conventions become suddenly attractive:
> 
> * Do not use @property at all
> 
> * Use @property for all nullary functions
> 
> And they're bound to save a lot of time to everyone involved.
> 
> 
> Andrei

Unless you assume no global state, nullary functions are just
a figment of your imagination.

Justin



More information about the Digitalmars-d mailing list