Skip to content

RFC: remove native types #1673

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
marijnh opened this issue Jan 26, 2012 · 2 comments
Closed

RFC: remove native types #1673

marijnh opened this issue Jan 26, 2012 · 2 comments

Comments

@marijnh
Copy link
Contributor

marijnh commented Jan 26, 2012

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.

@ghost ghost assigned marijnh Jan 26, 2012
@graydon
Copy link
Contributor

graydon commented Jan 27, 2012

I'm ok with this change.

@nikomatsakis
Copy link
Contributor

likewise.

Sent via Hubroid

marijnh added a commit that referenced this issue Feb 1, 2012
Code is still somewhat kludgy because we don't have 32-bit enums.

Issue #1673
marijnh added a commit that referenced this issue Feb 1, 2012
@marijnh marijnh closed this as completed Feb 1, 2012
@marijnh marijnh removed their assignment Jun 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants