<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">My opinion was that there's two ways to spell this, and that we ought to steer people towards being consistent. (We actually have special code right now so that the dotless reference can still be used for exhaustive matching.)</div><div class=""><br class=""></div><div class="">Either it's more consistent to allow it (because it's just another expression) or it's more consistent to disallow it (because it's not how you'd write the member in any other switch, and it's only one character of difference).</div><div class=""><br class=""></div><div class="">Jordan</div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 15, 2016, at 17:05, Jens Persson 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 dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: 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 see, I never thought of the case names as being instance-member-like, and I thought it would be simpler to just &nbsp;have one form for the switch cases (the one with a dot before the case name).<div class=""><br class=""></div><div class="">I don't want the dotless form to be removed if it complicates rather than simplifies the (compiler) code.</div><div class=""><br class=""></div><div class="">( My mail was a reaction to this tweet / conversation:</div><div class=""><a href="https://twitter.com/UINT_MIN/status/688101066668281856" class="">https://twitter.com/UINT_MIN/status/688101066668281856</a><span class="Apple-converted-space">&nbsp;</span>)</div><div class=""><br class=""></div></div><div class="gmail_extra" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: 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;"><br class=""><div class="gmail_quote">On Sat, Jan 16, 2016 at 1:42 AM, Joe Groff<span class="Apple-converted-space">&nbsp;</span><span dir="ltr" class="">&lt;<a href="mailto:jgroff@apple.com" target="_blank" class="">jgroff@apple.com</a>&gt;</span><span class="Apple-converted-space">&nbsp;</span>wrote:<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><span class=""><br class="">&gt; On Jan 15, 2016, at 2:44 PM, Jens Persson via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:<br class="">&gt;<br class="">&gt; enum SomeEnum {<br class="">&gt;&nbsp; &nbsp; &nbsp;case Foo<br class="">&gt;&nbsp; &nbsp; &nbsp;case Bar<br class="">&gt;&nbsp; &nbsp; &nbsp;func demoDotAndNoDot() {<br class="">&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;switch self {<br class="">&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case .Foo: print("This has the usual dot before the case name.")<br class="">&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case Bar: print("This has no dot, which is ok, at least in this particular context.")<br class="">&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br class="">&gt;&nbsp; &nbsp; &nbsp;}<br class="">&gt; }<br class="">&gt;<br class="">&gt; I'm just throwing this out in case someone should feel like writing a formal proposal to remove the dotless form.<br class="">&gt;<br class="">&gt; I'd be ok with removing it since it only works in some specific contexts.<br class=""><br class=""></span>This works by normal instance member lookup. Why do you think it should be removed?<br class=""><span class="HOEnZb"><font color="#888888" class=""><br class="">-Joe<br class=""><br class=""></font></span></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>--<span class="Apple-converted-space">&nbsp;</span><br class=""><div class="gmail_signature">bitCycle AB | Smedjegatan 12 | 742 32 Ã–sthammar | Sweden<br class=""><a href="http://www.bitcycle.com/" target="_blank" class="">http://www.bitcycle.com/</a><br class="">Phone: +46-73-753 24 62<br class="">E-mail:<span class="Apple-converted-space">&nbsp;</span><a href="mailto:jens@bitcycle.com" target="_blank" class="">jens@bitcycle.com</a><br class=""><br class=""></div></div><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: 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; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: 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=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: 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; float: none; display: inline !important;" class="">swift-evolution mailing list</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: 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=""><a href="mailto:swift-evolution@swift.org" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: 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="">swift-evolution@swift.org</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: 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=""><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: 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="">https://lists.swift.org/mailman/listinfo/swift-evolution</a></div></blockquote></div><br class=""></body></html>