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

Removed num::Orderable #12061

Merged
merged 1 commit into from Feb 14, 2014
Merged

Removed num::Orderable #12061

merged 1 commit into from Feb 14, 2014

Conversation

pongad
Copy link
Contributor

@pongad pongad commented Feb 6, 2014

// These should be methods on `Ord`, with overridable default implementations. We don't want
// to encumber all implementors of Ord by requiring them to implement these functions, but at
// the same time we want to be able to take advantage of the speed of the specific numeric
// functions (like the `fmin` and `fmax` intrinsics).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like we didn't even use fmin/fmax 😦
Can you open an issue for adding min/max/clamp default methods to Ord? Alternatively, just do it in this PR?

@emberian
Copy link
Member

emberian commented Feb 6, 2014

r+ with above comment addressed. death to num!

@pongad pongad mentioned this pull request Feb 6, 2014
@pongad
Copy link
Contributor Author

pongad commented Feb 6, 2014

Opened min/max/clamp issue.

@brendanzab
Copy link
Member

Where has the fmin and fmax functionality gone? D:

Why the r+?

@brendanzab
Copy link
Member

I think it would be best to have some alternative for floats in place before we r+ this. I'm all for killing Orderable, (I wrote that original FIXME at line 37), but it would be good to have something in place before hand.

@thestinger
Copy link
Contributor

@bjz: This doesn't seem to be using fmin and fmax, so I think it will produce different results with NaN.

@brendanzab
Copy link
Member

@thestinger I'm wondering if we should have an fmax etc. on Float

@brendanzab
Copy link
Member

@thestinger Are you ok with r+-ing this for now?

@thestinger
Copy link
Contributor

Yes, I'm okay with removing this trait.

@pongad
Copy link
Contributor Author

pongad commented Feb 7, 2014

I did not expect people to have strong opinions about this. Since some tests are failing anyway, I'll wait for the dust to settle over the weekend, just to make sure we're doing what we want to be doing. My university is also trying to get the last pint of my blood before I graduate, so this small break might prove useful.

@pongad
Copy link
Contributor Author

pongad commented Feb 12, 2014

From the lack of response, I assume everyone is ok with r+-ing this? The compile log looks like the compilation was manually interrupted. Is there a failed test I didn't see?

@brendanzab
Copy link
Member

Yeah this should be ok.

@pongad
Copy link
Contributor Author

pongad commented Feb 14, 2014

r=cmr

@huonw
Copy link
Member

huonw commented Feb 14, 2014

Needs a rebase.

@pongad
Copy link
Contributor Author

pongad commented Feb 14, 2014

Should be fixed now.

bors added a commit that referenced this pull request Feb 14, 2014
@bors bors closed this Feb 14, 2014
@bors bors merged commit bf1464c into rust-lang:master Feb 14, 2014
@pongad pongad deleted the delorderable branch February 14, 2014 04:27
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

Successfully merging this pull request may close these issues.

None yet

6 participants