Does D have too many features?
Jonathan M Davis
jmdavisProg at gmx.com
Sat Apr 28 16:01:41 PDT 2012
On Sunday, April 29, 2012 00:39:03 Timon Gehr wrote:
> Oh, completely forgot about that one:
>
> - 'in' operator returning a pointer to the element.
Really? I use that all the time with AAs. Without that, you would have to do
two lookups to get an object which might not be in the container, so it would
be less efficient. I'd hate it if in stopped returning a pointer. We'd just have
to add some other function which does the exact same thing as in now, and then
I'd use in a _lot_ less.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list