4 ms·
Thanks for this information. My point was more that map and reduce do not inherently require a recursive implementation and can be implemented directly as loop
by junke 11y ago
Thanks for this information.
My point was more that map and reduce do not inherently require a recursive implementation and can be implemented directly as loops.
I don't follow closely TypeScript: is tail-call merging done when compiling to Javascript or is the Javascript runtime responsible for this behavior?
- suzuki 11y agoNo, neither. That behavior is implemented in the same way as in the Lisp in Dart (http://www.oki-osk.jp/esc/dart/lisp-en.html#4 http://www.oki-osk.jp/esc/dart/lisp-en.html#4).