Skip to content

RFC: remove native types #1673

Closed
Closed
@marijnh

Description

@marijnh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions