> On 4 Jul 2016, at 18:55, Anton Zhilin <antonyzhi...@gmail.com> wrote:
>
> 2016-07-04 18:34 GMT+03:00 Karl via swift-evolution
> <swift-evolution@swift.org <mailto:swift-evolution@swift.org>>:
> Now that you mention it; why is Bool not an enum?
>
> Probably, for the same reason Int is not an enum.
Int could very well be an enum, but it would be too verbose because it has
billions of possible values, and implementing arithmetic would get tricky.
Bool, on the other hand, is defined to have one of two values and has very
limited arithmetic. It’s the perfect candidate for an enum.
Karl
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution