Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd tau to the f64 and f32 constants. #1486
Comments
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
Tau was proposed (and not landed) in rust-lang/rust#15248.
(Tau is 2 pi, not 2/pi.) |
This comment has been minimized.
This comment has been minimized.
cpeterso
commented
Mar 1, 2016
|
FWIW, TC39 rejected a proposal to add https://esdiscuss.org/topic/math-tau |
This comment has been minimized.
This comment has been minimized.
insaneinside
commented
Mar 13, 2016
|
|
This comment has been minimized.
This comment has been minimized.
kbknapp
commented
Mar 15, 2016
|
I'd +1 this. I get the comments above, but what does it hurt including a few "common" math constants?! Does anyone seriously subtract points from a PL for having too many math constants? The argument about it not being known is silly IMO because the samw could be said about literally anything in std which isn't familiar to the programmer. They'll either gloss over it or if interested do some quick googling. ...full disclosure I've got a project where I could use this |
This comment has been minimized.
This comment has been minimized.
1011X
commented
Mar 20, 2016
|
Seems to me that the main sources of friction for implementing something like
There's also the "too many constants" argument, but compared to the size of the standard library, a few more constants is barely anything. Either way, there's clearly a desire from people to include Regarding |
This comment has been minimized.
This comment has been minimized.
|
I don't understand why having a lot of constants would be a problem. It's not like anyone would have to maintain them. We also don't have a disk space shortage. (apologies to people still using floppy disks) |
This comment has been minimized.
This comment has been minimized.
insaneinside
commented
Mar 20, 2016
|
|
This comment has been minimized.
This comment has been minimized.
1011X
commented
Mar 20, 2016
|
I think that's fair. Let's stick to discussing |
This comment has been minimized.
This comment has been minimized.
|
Tau is pretty niche, it doesn't even have its own Wikipedia article. https://en.wikipedia.org/wiki/Turn_%28geometry%29#Tau_proposal |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@x13machine Oh, please no. |
This comment has been minimized.
This comment has been minimized.
|
I wanted to point out that we’re arguing about the wrong thing and what this whole discussion should’ve been about all along is addition of constant That being said, |
This comment has been minimized.
This comment has been minimized.
|
I really hope we get a WRT |
This comment has been minimized.
This comment has been minimized.
bluss
commented
Apr 25, 2016
|
π or 2π is not exactly going to go away any time soon. A sensible proposal would be to add either just |
nrc
added
the
T-libs
label
Aug 18, 2016
This comment has been minimized.
This comment has been minimized.
johnthagen
commented
Feb 21, 2017
|
FWIW, Python recently added |
This comment has been minimized.
This comment has been minimized.
porky11
commented
Feb 21, 2017
|
Adding |
This comment has been minimized.
This comment has been minimized.
burdges
commented
Mar 14, 2017
|
Happy Pi Day! ;) |
x13machine commentedFeb 3, 2016
Maybe even phi. I dunno