[swift-evolution] Why have both bit-wise and logical operators?

David Sweeris davesweeris at mac.com
Fri Aug 12 16:57:46 CDT 2016


Since integers don’t have an implicit logical value in Swift, and since booleans don’t have implicit integer values, why do we need separate operators for concepts that essentially seem (to me, anyway) to only differ by the “bit depth” of the types they operate on?

I normally wouldn’t raise this at a time when everyone’s so busy, but breaking changes and whatnot…

- Dave Sweeris


More information about the swift-evolution mailing list