[swift-evolution] [pitch] remove global sqrt<T: FloatingPoint>
xiaodi.wu at gmail.com
Mon Jul 11 16:53:09 CDT 2016
Seems reasonable enough.
On Mon, Jul 11, 2016 at 16:28 Stephen Canon via swift-evolution <
swift-evolution at swift.org> wrote:
> Post SE-0067 FloatingPoint provides the usual global operators, as well as
> a single global function:
> func sqrt<T: FloatingPoint>(_: T) -> T
> It seems out of place and lonely, and it would be nice if we can keep the
> default members of the global namespace to a minimum.
> I’d like to suggest removing this global from FloatingPoint while keeping
> the existing global functions for concrete types in the Darwin.C module.
> The square root operation would still be available for all FloatingPoint
> types as `.squareRoot()`.
> I would also plan to provide this and other math.h-ish globals in a future
> (post swift 3) Math module.
> – Steve
> swift-evolution mailing list
> swift-evolution at swift.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution