Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Linked lists considered harmful

Name: Anonymous 2009-10-10 20:46

  ↑    slava_pestov 4 points 5 hours ago [-]
  ↓    A perfect illustration of why single linked lists are simply the wrong data structure in
        99% of cases. Just use arrays and you won't have to choose between tail recursion, and
        front-to-back iteration order.
        permalink report reply

Name: Anonymous 2009-10-10 20:49

Pointless fanboy arguing.

Linked lists have plenty of usage, and arrays do actually complicate some matters. Arrays are faster to traverse, and require less memory, but they're
1) not nearly as easy to extend
2) usage can be less comfortable (pushing/poping to/from and others)

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List