-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 a proper 'numerical tower' in core or std #4231
Comments
An interesting paper on numerical towers in Typed Racket: http://www.ccs.neu.edu/racket/pubs/padl12-stff.pdf |
A couple more links for interesting algebraic systems from Haskell [1], [2] and Felix [3] that I think would be pretty straightforward to migrate over to Rust: 1: Haskell Numeric Classes |
@bjz default methods have mostly arrived! |
This doesn't seem to have been nominated properly. Nominating in order to clear the milestone. I don't think this blocks production-readiness. |
We agreed that if this is going to be a milestone bug, it should be more specific. De-nominating. |
Triage bump. Work is ongoing on cleaning up the traits in libstd. |
I think we're in agreement that this should be done out-of-tree. Once there's a fleshed out library, proposing an inclusion of it in the standard library via an RFC would make sense. |
I would love to see this reopened. This would definitely boost the abilitiy to write generic code (without external libraries). Though there are some caveats. |
I think this would be better off as a third-party lib first. Then it can be combined at a later date if it is deemed good enough. |
I'm not sure how feasible this currently is. We would have to think in terms of compile-time, zero-cost abstractions. On #rust:
Relevant articles on Wikipedia:
Other things to consider in the same vein are units of measure, range types and mod types. Perhaps these could be implemented via traits and default methods.
The text was updated successfully, but these errors were encountered: