"in" everywhere

Pelle pelle.mansson at gmail.com
Fri Oct 8 01:53:47 PDT 2010


On 10/08/2010 03:18 AM, Juanjo Alvarez wrote:
> On Thu, 7 Oct 2010 15:53:13 -0700, Jonathan M Davis
> <jmdavisProg at gmx.com> wrote:
>> Except that when you're dealing with generic code which has to deal
> with
>> multiple container types (like std.algorithm), you _need_ certain
> complexity
>> guarantees about an operation since it could happen on any
> container that it's
>
> Then, don't use it in std.algorithm or any other code that needs
> guaranteed complexity, just like now. I don't see the problem with a
> generic "in" operator, nobody would be forced to use it.

What do you suggest for fast lookup in a container?


More information about the Digitalmars-d mailing list