[swift-evolution] Proposal: Allow #if to guard switch case clauses

Chris Lattner clattner at nondot.org
Thu May 11 00:37:31 CDT 2017


I agree with Jordan.

-Chris

> On May 10, 2017, at 11:47 AM, Jordan Rose via swift-evolution <swift-evolution at swift.org> wrote:
> 
> I'm in favor, certainly. I'd personally say this wouldn't even need to go through the full evolution process, but I'm not a core team member.
> 
> Jordan
> 
> 
>> On May 10, 2017, at 01:32, rintaro ishizaki via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>> 
>> Hi evolution community,
>> 
>> This proposal allows you to enclose switch cases with #if directive.
>> Implementation: https://github.com/apple/swift/pull/9457 <https://github.com/apple/swift/pull/9457>
>> This is one of the oldest SR issue:
>> https://bugs.swift.org/browse/SR-2 <https://bugs.swift.org/browse/SR-2>
>> https://bugs.swift.org/browse/SR-4196 <https://bugs.swift.org/browse/SR-4196>
>> 
>> Thanks!
>> Rintaro
> 
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution

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


More information about the swift-evolution mailing list