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

Nicholas Maccharoli nmaccharoli at gmail.com
Thu May 11 00:45:22 CDT 2017


I also strongly agree.

I can think of no strong argument against this, was this intentional at one
point or a compiler bug?

- Nick


On Thu, May 11, 2017 at 2:37 PM, Chris Lattner via swift-evolution <
swift-evolution at swift.org> wrote:

> 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> wrote:
>
> Hi evolution community,
>
> This proposal allows you to enclose switch cases with #if directive.
> Implementation: 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-4196
>
> Thanks!
> Rintaro
>
>
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
>
>
>
> _______________________________________________
> 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/20170511/a120794e/attachment.html>


More information about the swift-evolution mailing list