Re: Why no tail calls from generators?

2016-10-12 Thread Bergi
Joe Gibbs Politz wrote: 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?) I'd guess that generator functions are already complicated enough, and the `next()` call that at leas

Why no tail calls from generators?

2016-10-12 Thread Joe Gibbs Politz
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 gener