Kevin Smith wrote:

don't want to get last yielded-value, that is a GC-leak honey trap;

Can you elaborate?

Claude suggested (yield?) or some such to get the last value passed via .next to the now running generator. This would not pause execution. It could be used to get that first-next value (this thread's subject) but it could also be used unwisely all over, and it would require the implementation to keep the last value passed to .next in a pigeon-hole per running generator. Hence GC-leak honey trap.

/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to