Skip to content
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

RFC: Unsafe fields. #358

Closed
wants to merge 1 commit into from
Closed

RFC: Unsafe fields. #358

wants to merge 1 commit into from

Conversation

reem
Copy link

@reem reem commented Oct 7, 2014

Add unsafe fields. Unsafe fields are declared in the definition of a
struct by prefacing them with unsafe, and a public unsafe field is
prefixed with pub unsafe. Accessing an unsafe field is unsafe.

Rendered

@reem
Copy link
Author

reem commented Oct 7, 2014

This would be useful in hypers possible raw module, so that direct access to the status, headers, and body of a partially written HTTP response can be marked properly unsafe without unnecessary verbosity.

@huonw
Copy link
Member

huonw commented Oct 7, 2014

cc #80

@reem
Copy link
Author

reem commented Oct 7, 2014

Derp. Is there much point in discussing this?

@pnkfelix pnkfelix self-assigned this Oct 9, 2014
@pnkfelix pnkfelix mentioned this pull request Oct 9, 2014
@pnkfelix pnkfelix added the postponed RFCs that have been postponed and may be revisited at a later time. label Oct 9, 2014
@pnkfelix
Copy link
Member

pnkfelix commented Oct 9, 2014

closing as postponed.

@pnkfelix pnkfelix closed this Oct 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
postponed RFCs that have been postponed and may be revisited at a later time.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants