Skip to content

Conversation

zygoloid
Copy link
Contributor

Switch to using MaybeUnformed and a bool as the normal representation for Optional(T). When T is a pointer type, add a customized representation that uses MaybeUnformed(T*) with a null representation used for absent values. Add builtins to produce and detect null values of type MaybeUnformed(T*).

Add builtins to form and detect null `MaybeUnformed(T*)` values, and use
those to represent `Optional(T*)`.
@zygoloid zygoloid force-pushed the optional-storage-customization branch from 383c09a to 4fe2900 Compare September 30, 2025 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant