User loginNavigation |
No more tail calls in Javascript?In very disappointing news proper tail calls are out of ES4. It seems that a justification for tail calls could not be found. For example, here is Adobe's position on tail calls:
This seems misguided. The user can implement functional data structures but not tail calls (without whole program transformation), so the later are much more valuable than the former. Furthermore, as a functional programmer I'm quite happy to use mutable data structures but I would certainly miss tail calls. Finally, every JS implementation is already shifting to code generation because straightforward implementation techniques are too slow for the existing idioms used in JS code. The ES4 Wiki still indicates that tail calls are in, so perhaps they'll yet make it. For laughs you might want to look at the Ecmascript progress spreadsheet. Apple sure don't like change. |
Browse archives
Active forum topics |
Recent comments
6 weeks 3 days ago
6 weeks 3 days ago
6 weeks 3 days ago
12 weeks 4 days ago
1 year 5 days ago
1 year 5 days ago
1 year 5 days ago
1 year 22 weeks ago
1 year 27 weeks ago
1 year 28 weeks ago