-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Add TAU consts to f32 and f64 #66616
Comments
Python and C/C++ doesn't seem to include that constant either. |
Python 3.6 added a tau constant, |
@icefoxen without any guarantees, I'm sure it's pretty safe to just open a PR with an explanation and some reasoning and see what happens. To open an issue for asking is not necessary, just a tracking issue afterwards will be needed. |
See also: rust-lang/rfcs#1486 |
Closing this as it is easier to create a tracking issue when the rfc is accepted. Thanks |
Tracking issue: #66770 |
For posterity's sake, this was rejected back in #15248; any new RFCs would have to address that discussion. |
Where
tau = 2 * pi
.In aesthetic terms, very much in the vein of ha-ha-only-serious, the argument is described here.
In practical terms, we already have const's for pi divided by various useful integers, so why not include multiplying it by the only really useful integer as well?
PR is trivial and already implemented in icefoxen@50173bd , but apparently I need a feature name and issue number and such associated with it, hence this ticket.
The text was updated successfully, but these errors were encountered: