From: ufuk@... Date: 2021-01-01T22:34:22+00:00 Subject: [ruby-core:101871] [Ruby master Feature#17496] Add constant Math::TAU Issue #17496 has been updated by ufuk (Ufuk Kayserilioglu). I also don't understand why `Math::TAU` needs to be added to Ruby, even though I am familiar with the manifesto and think it might have a merit. However, it is just a redefinition of a basic mathematical constant that doesn't bring much else to the table other than making learning some trig concepts simpler. Moreover, the manifesto explicitly states: >**How can we switch from �� to ��?** > The next time you write something that uses the circle constant, simply say ���For convenience, we set ��=2�����, and then proceed as usual. Which means that all you have to do is: ```ruby Math::TAU = 2 * Math::PI ``` in your codebase if you want to use it, as suggested by the manifesto. There is no need for Ruby to add all possible constants to the language, especially not the ones that are expressible in terms of constants that already exist. Basically, it boils down to: Is there a mathematical operation you can't perform if Ruby does not define Tau? I'd say: no. Happy to hear otherwise. ---------------------------------------- Feature #17496: Add constant Math::TAU https://bugs.ruby-lang.org/issues/17496#change-89708 * Author: jzakiya (Jabari Zakiya) * Status: Open * Priority: Normal ---------------------------------------- Excuse me if this has been brought up before. This is a simple proposal to add the math constant ``Math::TAU`` = 2*``Math::PI``. See: https://tauday.com/ ``TAU`` has been included in a growing number of languages (Rust, Python3, Julia, et al), and this would add Ruby to that list, and make it even cooler. :-) -- https://bugs.ruby-lang.org/ Unsubscribe: