<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Mar 9, 2017, at 5:59 AM, Matthew Johnson via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">I have argued repeatedly that enum cases play two distinct roles (and sometimes a third in the future). &nbsp;We need to embrace all of these roles. &nbsp;This proposal primarily normalizes the role of case-as-factory-method. &nbsp;</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Pattern matching is a second role enum cases play. &nbsp;We already have syntax for patterns that match based on type. &nbsp;I see no reason we should introduce new matching syntax to disambiguate overloaded cases. &nbsp;The existing patterns work well for this purpose. &nbsp;Matching should be considered a role played by enum cases that is completely orthogonal to their role as a factory method.</div></div></blockquote><br class=""></div><div>Matching and construction are closely related and designed to mimic each other. They aren't completely orthogonal.</div><div><br class=""></div><div>-Joe</div><br class=""></body></html>