[swift-evolution] Extend FloatingPoint with tau!

Stephen Canon scanon at apple.com
Thu Jun 30 10:22:23 CDT 2016


This was discussed as part of SE-0067.

The consensus was that pi deserved special treatment, as it is used in general-purpose code an order of magnitude more often than the all other constants combined.  I don’t think that anyone argued against it’s inclusion.

– Steve

> On Jun 30, 2016, at 9:12 AM, Joseph Bell via swift-evolution <swift-evolution at swift.org> wrote:
> 
> I would argue the reverse, i.e., removing pi as a property of FloatingPoint.  What is it there vs. being part of a separate mathematic constants package?  I don't see Euler's number or phi (golden ratio) in the proposal.
> 
> Joe
>  
> 
> On Wed, Jun 29, 2016 at 2:45 AM, David Hart via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
> Hello community,
> 
> Tau day <http://tauday.com/> was yesterday, and reminded me that we forgot to provide a `tau` next to `FloatingPoint`’s `pi` property. How about we write a proposal to brind this forward-thinking constant to a forward-thinking language?
> 
> Proposal: Extend `FloatingPoint` with tau
> 
>   /// The mathematical constant tau = 6.28318...
>   ///
>   /// Extensible floating-point types might provide additional APIs to obtain
>   /// this value to caller-specified precision.
>   static var tau: Self { get } 
> 
> David.
> 
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org <mailto:swift-evolution at swift.org>
> https://lists.swift.org/mailman/listinfo/swift-evolution <https://lists.swift.org/mailman/listinfo/swift-evolution>
> 
> 
> 
> 
> -- 
> Joseph Bell
> http://dev.iachieved.it/iachievedit/ <http://dev.iachieved.it/iachievedit/>
> @iachievedit
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160630/b33e4ae4/attachment.html>


More information about the swift-evolution mailing list