Why no tail calls from generators?

Joe Gibbs Politz joe at cs.brown.edu
Wed Oct 12 19:07:12 UTC 2016

Hi!  I tried searching the archives and a bit around the Web, but couldn't
find a place where this was written down; I may just need a pointer.

What is the rationale for explicitly disallowing PTC in generators?  (Or,
in the case of proposals like STC, why not allow users to opt in to TCO in
generator bodies?)

Specifically, I'm referring to step 5 in IsInTailPosition that returns
false (
if the body is a generator body.

Joe P
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20161012/e7602e47/attachment.html>

More information about the es-discuss mailing list