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

More features for Float #178

Closed
bluss opened this issue Mar 7, 2016 · 4 comments
Closed

More features for Float #178

bluss opened this issue Mar 7, 2016 · 4 comments

Comments

@bluss
Copy link
Contributor

bluss commented Mar 7, 2016

If Float truly is for f32 and f64 (it should be), we can frontload it with as much features as possible.

Wishlist:

  • 'static
  • Display + Debug + LowerExp + UpperExp
  • Send + Sync
@AtheMathmo
Copy link
Contributor

AtheMathmo commented Nov 1, 2016

I just want to second Display + Debug. This is a real pain-point for me. I have some core functions which work on Float generics and are used all over the place. If I need to debug one of these functions I have to change trait bounds all over the place to print my data structures containing generic Floats.

There are other ways around it - like writing helper functions to convert my data structures to non-generic types that implement Display + Debug. But I think it makes sense to include these in Float. If this isn't considered a breaking change and is wanted I'd be happy to put a PR in.

@bluss
Copy link
Contributor Author

bluss commented Nov 1, 2016

Here's a fun workaround: https://docs.rs/debugit/0.1.0/debugit/struct.DebugIt.html (Requires nightly right now, but you just use it for debugging anyway).

@AtheMathmo
Copy link
Contributor

Oh neat, thanks!

remexre pushed a commit to remexre/num that referenced this issue Jun 1, 2017
Require newline to be written successfully
@cuviper
Copy link
Member

cuviper commented Dec 19, 2017

This issue was moved to rust-num/num-traits#8

@cuviper cuviper closed this as completed Dec 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants