4 ms·
That is a good question. Although tail-call is easy to describe and understand I've haven't implemented it myself. I'd also appreciate pointers to resources.
by siraben 6y ago
That is a good question. Although tail-call is easy to describe and understand I've haven't implemented it myself. I'd also appreciate pointers to resources.
- siraben 6y agoOh, I completely forgot about[0], which talks about TCO in the imperative context (but applies to functional languages as well)! [0] https://dspace.mit.edu/bitstream/handle/1721.1/5753/AIM-443.pdf?sequence=2&isAllowed=y https://dspace.mit.edu/bitstream/handle/1721.1/5753/AIM-443....
- Joker_vD 6y agoSee also [0], which talks about how Chicken SCHEME (which compiles to portable C) does it. [0] https://www.more-magic.net/posts/internals-gc.html#managing-data-on-the-stack https://www.more-magic.net/posts/internals-gc.html#managing-...