-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Here is our terminology problem with current libraries:
- We have fulfilled, rejected, and pending as three mutually-exclusive states. Everyone is reasonably happy with those names.
- We want a name for the operation
operation(x)coupled to promisepwhere ifxis a non-promise value,pbecomes fulfilled withx, and ifxis a promise,padopts its state, either immediately or eventually. Currently this is called "resolve." - We want a way of talking about the two "not pending" states as a single entity. Currently this is called "resolved."
- The problem is that if you "resolve" a promise as per 2, it does not become "resolved" as per 3.
Let's use this thread to think of replacements for the verb in 2, assuming that we keep the state name as of 3.
Ideas so far:
- "designate": designate(x) causes p to designate whatever x designates.
- "adopt": adopt(x) causes p to adopt x's (possibly eventual) state
- "become": become(x) causes p to become x. (Problem: cannot use transitively, i.e. "become p with x" is awkward.)
- "yield": yield(x) causes p to yield to x's value. (Confusing with upcoming
yieldkeyword.)
No ideas that jump out at me so far... anyone got anything better?
Metadata
Metadata
Assignees
Labels
No labels