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

Add an ignore function to Result to explicitly ignore it. #20949

Closed
mahkoh opened this issue Jan 11, 2015 · 6 comments
Closed

Add an ignore function to Result to explicitly ignore it. #20949

mahkoh opened this issue Jan 11, 2015 · 6 comments

Comments

@mahkoh
Copy link
Contributor

mahkoh commented Jan 11, 2015

No description provided.

@Gankra
Copy link
Contributor

Gankra commented Jan 11, 2015

Seems reasonable to me.

@bluss
Copy link
Member

bluss commented Jan 12, 2015

I use .ok(); to do that. I guess that's pretty obscure code.

@alexcrichton
Copy link
Member

Closing for reasons cited in the PR: #21101 (comment)

@zesterer
Copy link
Contributor

Is this still potentially on the table for a future release? Seems like a useful method for Result to have.

@hasufell
Copy link

I don't know why this thread was closed. The comment in the PR doesn't say there definitely needs to be an RFC and it doesn't indicate this is resolved in any way, just that there needs to be further discussion.

@ruivieira
Copy link

Nim uses a discard statement for this effect: https://nim-lang.org/docs/tut1.html#procedures-discard-statement

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

8 participants