[swift-evolution] [Review] SE-0067: Enhanced Floating Point Protocols
Daniel Vollmer
lists at maven.de
Tue Apr 19 17:11:50 CDT 2016
> On 19 Apr 2016, at 23:16, Chris Lattner via swift-evolution <swift-evolution at swift.org> wrote:
>
> Hello Swift community,
>
> The review of "SE-0067: Enhanced Floating Point Protocols" begins now and runs through April 25. The proposal is available here:
>
> https://github.com/apple/swift-evolution/blob/master/proposals/0067-floating-point-protocols.md
This looks pretty nice, but I have to admit I’m unaware of pretty much anything about the current floating-point protocols.
A question, if I may:
> /// A signalling NaN (not-a-number).
> @warn_unused_result
> static fun signalingNaN: Self { get }
Why is this a static func compared to a static var for nan? Representation only known at run-time? Why is the second N in NaN capitalised?
Daniel.
More information about the swift-evolution
mailing list