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
*T
is always non-null - C++
*T
maps 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_null
go away
This would help clarify code that uses unsafe pointers.
Metadata
Metadata
Assignees
Labels
No labels