Closed
Description
to be an always-invalid "NULL" handle?
Two benefits that come to mind for client languages:
- easy to spot usage of uninitialized fields. Trying to use an uninitialized 0 field as a handle would then cause an error, instead of silently using the first resource.
- enables optional handles to be stored with zero overhead. Similar to Rust's option null pointer optimization (
Option<NonZeroU32>
)
Metadata
Metadata
Assignees
Labels
No labels