[squeak-dev] The Inbox: Kernel-tonyg.1148.mcz
Tony Garnock-Jones
tonyg at leastfixedpoint.com
Thu Feb 1 10:02:22 UTC 2018
Hi Eliot,
On 02/01/2018 12:34 AM, Eliot Miranda wrote:
> + (arg isKindOf: Promise)
>
> I'd /much/ rather see Object>>isPromise and Promise>>isPromise than this.
Excellent point! Thanks.
There is a Promise>>isPromise, but no matching Object>>isPromise.
Kernel-tonyg.1150 (just committed to Inbox) reintroduces it, and
switches from using isKindOf: to using isPromise.
This change is also in keeping with the spirit of Promises/A+, where
anything that is "thenable" is treated as promise-like.
Tony
More information about the Squeak-dev
mailing list
|