3 ms·
For a functionnal language, TCO is really a must have. How would you do the equivalent of loops without it ?
by feb 9mo ago
For a functionnal language, TCO is really a must have. How would you do the equivalent of loops without it ?
- yencabulator 9mo agoFor a purely functional language. Scheme is not that. https://www.gnu.org/software/guile/manual/html_node/while-do.html https://www.gnu.org/software/guile/manual/html_node/while-do...
- anthk 9mo agoAnd you are wrong because you can define a loop as iterating recursively over a list with just car and cdr.
- yencabulator 9mo agoCan but since other constructs exist that doesn't by itself make TCO "must have"
- fnord123 9mo agoI wasn't asking which scheme has TCO. I was asking which scheme if the 20-50 of them was "lightweight" and embeddable.