> Le 20 avr. 2016 à 16:07, Dave Abrahams via swift-evolution 
> <[email protected]> a écrit :
> 
> 
>> on Wed Apr 20 2016, Stephen Canon <[email protected]> wrote:
>> 
>> Comments inline.
>> 
>>> On Apr 20, 2016, at 12:04 PM, Xiaodi Wu <[email protected]> wrote:
>>> 
>>> Also potentially useful (actually, definitely useful in implementing
>>> floating point strides) would be the properties `maxExactInteger`
>>> (and, I suppose, a corresponding `minExactInteger`).
>> 
>> An early draft of the protocol had these.  Naming this property is
>> *hard*, because every floating-point value larger than
>> `maxExactInteger` is … an exact integer.  If you want to be
>> unambiguously precise, you end up with something horrible.  Ultimately
>> I punted on this issue, but I would definitely support adding it in
>> the future if an appropriate name can be found, or if a compelling use
>> case arises (I don’t think it’s actually needed for implementing
>> strides).
> 
> Isn't this really maxResultOfAdding1?

Would a more generic:
maxResultOfAdding(_:Self)
make sense?

Dany
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to