Book in the works by Alexander Stepanov

Don nospam at nospam.com.au
Mon Sep 8 06:56:52 PDT 2008


Manfred_Nowak wrote:
> Alix Pexton wrote:
> 
>> If I find myself needing to regularly get the nth item from a
>> linked list I would start to ask myself why I was using a list in
>> the first place. 
> 
> What is a "linked list"?
> 
> This question is motivated by your stated incompatibility of the "get 
> the nth item"-operation with a "linked list". I do not see such an 
> incompatibility.

Using 'get the nth item' with a linked list is like using a brick as a 
hammer. Sure, you can do it, and sometimes you have to. But if you're 
doing it a lot, something is badly wrong. It's not something that should 
be encouraged.



More information about the Digitalmars-d-announce mailing list