byKey and byValue: properties or methods?
Timon Gehr
timon.gehr at gmx.ch
Tue Jan 17 10:38:47 PST 2012
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. ;)
More information about the Digitalmars-d
mailing list