2 ms·
Properly coded, there is no reason to assume, that it would not work for an arbitrary depth. Considering, that this is on a website, and that it is running JS,
by zelphirkalt 4y ago
Properly coded, there is no reason to assume, that it would not work for an arbitrary depth. Considering, that this is on a website, and that it is running JS, which in most implementations does not implement tail call elimination, coding it properly probably involves externalizing the stack.
- rafram 4y agoThe browser is just an iframe, so tail call optimization isn’t relevant. https://github.com/DustinBrett/daedalOS/blob/b1681546a2ce990ad8b6d86c8373d137b377b839/components/apps/Browser/index.tsx#L165 https://github.com/DustinBrett/daedalOS/blob/b1681546a2ce990...