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 23:06

>>31
Yeah, I kinda get what you mean. But it seems to me that this extreme factoring that fans of concatenative languages rave about is actually kinda superfluous in other languages, because using variables (with sensibly descriptive names) actually makes the code clearer and removes the need for factoring it too radically. On the other hand, if you don't keep your functions extremely short in a concatenative language, your code will be an unreadable mess.

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