Closed domenic closed 10 years ago
Yeah, I’m going to write up a document about naming free variables versus naming properties in ES5 versus naming properties in ES3 that motivates the parallel of return
and close
to resolve
, throw
to reject
, write
to yield
, cancel
to throw
, &c. I should also make clear that these parallels are intended to be illustrative and far too academic to approach normative.
…but I will make that argument another time in another place. Removed locally, pushing change soon.
That is, the
return
andthrow
methods; thePromise.defer
method; theresolver
object instead of separateresolve
andreject
functions; etc.