Precedence of yield operator
Tab Atkins Jr.
jackalmage at gmail.com
Fri Jun 14 08:54:31 PDT 2013
On Fri, Jun 14, 2013 at 5:33 PM, Sam Tobin-Hochstadt <samth at ccs.neu.edu> wrote:
> On Fri, Jun 14, 2013 at 11:21 AM, Tab Atkins Jr. <jackalmage at gmail.com> wrote:
>> Using generators for async is a clever hack, but it's just a hack. A
>> proper solution will need a new keyword anyway (most languages seem to
>> use "await" or something similar), which can get the better
> This is just not true -- the semantics of generators and of `await` as
> proposed on this list are very very similar.
Yup, very similar, but not identical, which is why we have slight
incompatibilities in the desired precedence, why you need to have a
wrapper to handle the calling, etc.
More information about the es-discuss