I'm looking through the swift stdlib code and I notice so much of the code for the built-in types, such as Bool are defined as extensions:
https://github.com/apple/swift/blob/master/stdlib/public/core/Bool.swift
Why is that? Why not just put all of the functionality into the main struct starting at line 64?
https://github.com/apple/swift/blob/master/stdlib/public/core/Bool.swift
Why is that? Why not just put all of the functionality into the main struct starting at line 64?