Phobos2: iota, ranges, foreach and more
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Mon May 4 18:11:24 PDT 2009
Georg Wrede wrote:
> bearophile wrote:
>>
>> While reading the source code of Phobos2 function calls like ".front"
>> confuse me, I find ".front()" more readable. I think I am not the
>> only one to think like this.
>
>
> The docs should be consistent and clear, also in trivial matters. If
> something is a function, then the parens should be there. The reader may
> know that you can omit the parens, but it has to be easy for him to
> recognize a name as a function.
Omitting parens gives more options. For example, infinite ranges are
defined and recognized as:
enum bool empty = false;
Andrei
More information about the Digitalmars-d
mailing list