-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Maybe we could subtype Ternary by reassigning Ternary.Always = true, Ternary.Never = false, Ternary.Maybe = Symbol('maybe') and have helper methods for the type to have helpers like toBool(maybeAs: boolean), alwaysOrMaybe(), onTernary<T>(tru: () => T, ...), and(a: Ternary, b: Ternary).
Originally posted by @EagleoutIce in #2321 (comment)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request