-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Closed
Description
"I am managing the lifetime of this pointer myself" and "I might have null instead of a pointer" should be orthogonal concepts.
I suggest:
- Rust
*Tis always non-null - C++
*Tmaps to Rustoption<*T>in bindings (depends on Tags should be represented using null ptrs where possible #1271) ptr::null,ptr::is_null, andptr::is_not_nullgo away
This would help clarify code that uses unsafe pointers.
Metadata
Metadata
Assignees
Labels
No labels