mozilla/rust — Issue #1673: RFC: remove native types
Author: marijnh
Created: 2012-01-26 08:54:36+00:00
State: open
Labels: design, rfc

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.