Closed dead-claudia closed 9 months ago
That is a definite nonstarter, as many delegates have previously objected to async interleaving points that aren't marked by an await
(the "suspend" parts are the interleaving points), as well as many delegates including myself objecting to ever having the mere mention of a variable cause side effects (modulo with
and global accessors, ofc, which sadly we can't remove)
Maybe something like
await let foo = bar
, wherefoo
is implicitlyawait
ed on first evaluation or (awkward to spec, easy to implement) function closure reference.This sidesteps the whole object API ergonomics problem.