[swift-evolution] Bool vs. Optional<Void>

Slava Pestov spestov at apple.com
Fri Dec 18 00:36:38 CST 2015


> On Dec 17, 2015, at 11:01 AM, Pyry Jahkola via swift-evolution <swift-evolution at swift.org> wrote:
> (Possibly related to this is that Bool is a struct and not an enum in Swift.)

This is an artifact of the current implementation more than anything. IIRC there are missed optimization opportunities with an enum implementation, but the goal is to move to that.

Slava

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151217/77e1a3cf/attachment.html>


More information about the swift-evolution mailing list