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
17 weeks 8 hours ago
17 weeks 11 hours ago
17 weeks 11 hours ago
39 weeks 1 day ago
43 weeks 3 days ago
45 weeks 19 hours ago
45 weeks 19 hours ago
47 weeks 5 days ago
1 year 2 days ago
1 year 2 days ago