Re:Deno Joins TC39
by adamddev1 on Monday December 13, 2021 @10:51AM
(#29540658)
Or how about TCO (tail-call optimization)? Please pretty please!
[ Parent
| on HN ]
Re:Deno Joins TC39
by lucacasonato on Monday December 13, 2021 @11:01AM
(#29540752)
TCO is something that specific JS engines need to implement. It is implemented in JSC (Safari), but not in V8 or SpiderMonkey. Also see https://v8.dev/blog/modern-javascript#proper-tail-calls.
As this is an engine feature rather than a spec thing, there is nothing me (or any other TC39 delegate) can do.
Oh yes, I see, that's true. Thanks for the explanation.
Proper tail calls are ALREADY part of the spec.
Google and Mozilla simply chose to ignore the spec.
More like Google, Mozilla just waits to see if Google is going to implement it since they can't think for themselves.