function.sent beta equivalence?

Brendan Eich brendan at mozilla.org
Thu Jun 25 16:33:54 UTC 2015


Jason Orendorff wrote:
> My sense is that function.next

s/.next/.sent/

>   is outside this relationship, and it
> shows as a bit of a wart every time you write abstract code about
> generators.

Yes, agree there's a smell. We did not automate delegating function.sent 
for good reason, though. Is there another way to attack the problem than 
by looking for an implicit propagation in the elimination form?

>   For example, Mark's flatMap on generators must pass
> undefined as the first value to g2.

Yup, smell -- not the worst, maybe not even offensive, but definitely an 
aroma!

/be


More information about the es-discuss mailing list