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

Jordan Rose jordan_rose at apple.com
Wed May 10 13:47:23 CDT 2017


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> 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

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


More information about the swift-evolution mailing list