[swift-evolution] Dotless case names in switch cases

Joe Groff jgroff at apple.com
Mon Jan 18 10:42:47 CST 2016


> On Jan 16, 2016, at 2:29 AM, Brent Royal-Gordon <brent at architechies.com> wrote:
> 
>> This works by normal instance member lookup. Why do you think it should be removed?
> 
> Wait, why would the case be an instance member? Isn't it equivalent to a static member?

You're right, sorry. This is really a holdover from early versions of the compiler where we did 'static' lookup from instance scope. It would be more consistent to disallow it, I agree.

-Joe


More information about the swift-evolution mailing list