<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 4 Jul 2016, at 18:55, Anton Zhilin <<a href="mailto:antonyzhilin@gmail.com" class="">antonyzhilin@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote">2016-07-04 18:34 GMT+03:00 Karl via swift-evolution <span dir="ltr" class=""><<a href="mailto:swift-evolution@swift.org" target="_blank" class="">swift-evolution@swift.org</a>></span>:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Now that you mention it; why is Bool <i class="">not</i> an enum?</div></blockquote><div class=""> </div><div class="">Probably, for the same reason Int is not an enum.</div></div></div></div>
</div></blockquote></div><br class=""><div class="">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.</div><div class=""><br class=""></div><div class="">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.</div><div class=""><br class=""></div><div class="">Karl</div></body></html>