News for hackers. Stuff that matters.
Re:Deno Joins TC39 by adamddev1 on Monday December 13, 2021 @10:51AM (#29540658)
Or how about TCO (tail-call optimization)? Please pretty please!
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.

Re:Deno Joins TC39 by adamddev1 on Monday December 13, 2021 @11:27AM (#29541059)
Oh yes, I see, that's true. Thanks for the explanation.
Re:Deno Joins TC39 by hajile on Monday December 13, 2021 @11:37AM (#29541179)
Proper tail calls are ALREADY part of the spec.

Google and Mozilla simply chose to ignore the spec.

Re:Deno Joins TC39 by Scarbutt on Monday December 13, 2021 @12:21PM (#29541753)
More like Google, Mozilla just waits to see if Google is going to implement it since they can't think for themselves.
Re:Deno Joins TC39 by adamddev1 on Tuesday December 14, 2021 @01:49AM (#29548955)
It would be so nice to have it though! It could do a lot popularize recursive problem-solving and function writing, without having to go into modifying these functions to make them stack-safe.