On 01/17/2012 07:38 PM, Timon Gehr wrote:
On 01/17/2012 07:48 AM, Andrei Alexandrescu wrote:
I hate I must ask this:

int[string] aa;
foreach (k; aa.byKey) { ... }

or

int[string] aa;
foreach (k; aa.byKey()) { ... }



Thanks,

Andrei "I told you" Alexandrescu

IMO it does not matter. I think we should just deprecate the -property
switch instead of engaging into that kind of fruitless discussion every
now and then. ;)


Can't we drop the empty (). It's too much typing.
You don't need them in Delphi and Delphi has properties.

Reply via email to