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

Iteration versus Recursion

Name: Anonymous 2009-03-19 20:14

Discuss.

Name: Anonymous 2009-03-20 5:49

Someone hasn't heard of tail recursion/calls and how it's optimized. If dome right, it can be roughly the same as iteration (when compiled). Certain functional languages guarantee to properly handle such cases, and it's safe(and fast) to use tail recursion, however for most imperative languages I'd use iteration.

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