[swift-evolution] [swift-evolution-announce] [Review] SE-0067: Enhanced Floating Point Protocols
xiaodi.wu at gmail.com
Fri Apr 22 10:05:30 CDT 2016
On Fri, Apr 22, 2016 at 9:56 AM, Stephen Canon <scanon at apple.com> wrote:
> On Apr 22, 2016, at 10:54 AM, Xiaodi Wu <xiaodi.wu at gmail.com> wrote:
> Naive question: is it necessary to make a trade-off here? Why not an
> associated type Exponent that's Int for Float, Double, and Float80,
> allowing for something else for bignums?
> It’s an added (fairly minor) complexity to the API surface that confers
> approximately zero benefit.
Fair. I know it's silly, but it feels a little inelegant that for a
binary floating point type both `exponent` and `exponentBitCount` are
of type Int.
> – Steve
More information about the swift-evolution