[swift-evolution] [Re-Review] SE-0104: Protocol-oriented integers
Hugo Hennies
hhennies at gmail.com
Fri Feb 17 21:41:32 CST 2017
> • What is your evaluation of the proposal?
Very good. It's a much needed improvement to the language's integer protocols and type hierarchy.
I would argue against the deprecation of the BitwiseOperations protocol though. I believe a bitset type would be a good candidate for conformance to this protocol while at the same time not being an integer at all.
I do not propose to a standard library implementation of a bitset type, but I think the standard protocols should let themselves to be easily extended and implemented by user types. Assuming only integers will ever have bitwise operations might limit users and force them to write duplicate code.
> • Is the problem being addressed significant enough to warrant a change to Swift?
Yes, the previous protocols were confusing and didn't let themselves very well to generic programming over the various integer types of the language.
> • Does this proposal fit well with the feel and direction of Swift?
Yes, this proposal very much captures the feel of the language and it's standard library.
> • If you have used other languages or libraries with a similar feature, how do you feel that this proposal compares to those?
I haven't used a language before that I could compare effectively with the features proposed here.
> • How much effort did you put into your review? A glance, a quick reading, or an in-depth study?
A quick reading.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170218/3ac927a6/attachment.html>
More information about the swift-evolution
mailing list