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

Reply via email to