Function calls

Pelle Månsson pelle.mansson at gmail.com
Fri Jan 29 10:43:50 PST 2010


On 01/29/2010 07:10 PM, Steven Schveighoffer wrote:
> Note in the anecdote above, both users would have
> been satisfied if you could *only* call empty without parentheses.
>

That's a good point. The writeln = 3; is also a good point. :)

What I'm trying to defend is the ability to call non-property functions 
without the parens.

I find this:

array.stable_sort;
file.detach;
range.popFront;

to look less noisy, clearer and just plain sexier than the respective 
versions with the parens.



More information about the Digitalmars-d mailing list