-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Closed
Description
We have unsafe pointers, and we have zero-variant enums. This seems a good alternative for opaque pointers:
enum foreign_object {}
fn do_foreign_things(o: *foreign_object) { ... }
For non-opaque things, just using *u8 or *record_type is also clearer than using a native type.
Please weigh in if you think they have some merits and should be kept.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.