[swift-evolution] [Review] SE-0043 Declare variables in 'case' labels with multiple patterns

Greg Titus greg at omnigroup.com
Wed Mar 16 13:40:09 CDT 2016

> On Mar 16, 2016, at 10:55 AM, Chris Lattner via swift-evolution <swift-evolution at swift.org> wrote:
> The review of “Declare variables in 'case' labels with multiple patterns” begins now and runs through March 21, 2016. The proposal is available here:
> 	https://github.com/apple/swift-evolution/blob/master/proposals/0043-declare-variables-in-case-labels-with-multiple-patterns.md <https://github.com/apple/swift-evolution/blob/master/proposals/0043-declare-variables-in-case-labels-with-multiple-patterns.md>
> 	• What is your evaluation of the proposal?


> 	• Is the problem being addressed significant enough to warrant a change to Swift?

Absolutely. The lack of this feature causes a lot of extra boilerplate or workarounds when dealing with enums.

> 	• Does this proposal fit well with the feel and direction of Swift?

Yes. I was surprised the language didn’t already include it. It seems natural.

> 	• If you have used other languages or libraries with a similar feature, how do you feel that this proposal compares to those?

I’ve used pattern matching in Haskell quite a bit and this Swift feature serves the same purpose and is really almost a necessary removal of a pattern matching limitation.

> 	• How much effort did you put into your review? A glance, a quick reading, or an in-depth study?

I spent enough effort on it to implement most of it in the compiler. :-)

> More information about the Swift evolution process is available at:
> https://github.com/apple/swift-evolution/blob/master/process.md <https://github.com/apple/swift-evolution/blob/master/process.md>
> Thank you,
> -Chris
> Review Manager
> _______________________________________________
> 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/20160316/1b7458fd/attachment.html>

More information about the swift-evolution mailing list