[swift-evolution] Bit arrays

Daryle Walker darylew at mac.com
Sun Jul 3 16:42:03 CDT 2016


Since objects aren't addressable by default, there wouldn't be the problems with a bit-packed Boolean collection that C++'s "vector<bool>" has. Does "[Bool]" currently have the option of packed optimization, or would  it have to be added via a proposal?  Or does it have to be a separate type instead?

This also brings to mind bit fields and fixed-sized bit sets, but those might have to wait for value-based generic parameters, and that's at least until Swift 4....

Sent from my iPhone


More information about the swift-evolution mailing list