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

From? #23

Open
steveklabnik opened this issue Oct 23, 2015 · 3 comments
Open

From? #23

steveklabnik opened this issue Oct 23, 2015 · 3 comments
Labels

Comments

@steveklabnik
Copy link
Contributor

So, I am torn. There are a bunch of structs with a .from() method. Which is fine. But they return a Result. Rust has a trait, From, which is for lossless conversions, ie, they return T, not Result<T, _>.

So maybe these should be from_something instead? Not 100% clear.

@brianloveswords
Copy link
Owner

I think you're right, put probably not urgent enough to do a concerted cleanup. I'll start fixing those when I come across them during other work!

@jennschiffer
Copy link

...I am torn

p17scveg4k1ibk1luhs8i12ks17hdn

@tkellen
Copy link
Collaborator

tkellen commented Feb 12, 2016

<3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants