[swift-evolution] [Review] SE-0109: Remove the Boolean protocol

Chris Lattner clattner at apple.com
Wed Jun 29 14:37:43 CDT 2016


> On Jun 29, 2016, at 5:48 AM, Taras Zakharko via swift-evolution <swift-evolution at swift.org> wrote:
> 
> Just a quick clarification: I was under impression that the utility of Boolean was that one could extend any type to behave as a boolean type and thus be used in control flow constructions etc. Not something that has to do often, but nice to have nevertheless.

The baseline is not generally whether something that is “nice to have nevertheless”.  A better way to look at legacy features like this is: if Swift 3 didn’t already have this feature, would we add it now?

-Chris



More information about the swift-evolution mailing list