-
Notifications
You must be signed in to change notification settings - Fork 31
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
Implement more num-traits (e.g. checked arithmetic) #86
Comments
Hi, sorry for the delay. I see... It looks to me like many such traits in I think it would be best to go all-out and implement as many of those traits as possible, to make sure there is no need to come back to that later. I'll try to do that today and get back to you. Thanks |
Thanks for the reply! |
Glad to hear that! :) Just to let you know, I'm still working on your request, this is progressing slowly because I have very little time at the moment, but I'm not forgetting, and should push a commit soon (in 1 or 2 days I would guess). |
Yeah, I didn't find Thanks for working on it, no need for rush :) |
It's now available in 0.15.9; (could have been published earlier, but I initially thought there would be a need for a macro similar to That should do it, I'll close this issue but feel free to re-open if there is some stuff missing or such. I think there are quite a few more traits that could be implemented, but at least those from |
num-traits
has many traits not yet implemented by theVec
types.I personally want the checked math traits, such as
CheckedAdd
. Without those traits, it's a much bigger hassle to write overflow-avoiding code.For the sake of completeness, other traits, such as the wrapping ones (e.g.
WrappingAdd
) could also be implemented.I'd be willing to implementing this myself.
The text was updated successfully, but these errors were encountered: