[swift-evolution] [Idea] Allowing most keywords after "."

Joe Groff jgroff at apple.com
Sat Feb 27 14:14:48 CST 2016


Stephen Celis via swift-evolution
<swift-evolution at swift.org> wrote:
> 1. Is it possible to reconsider reusing another keyword, `else`, as Ruby does?

C needed a different keyword to avoid needing lookahead, since 'if (foo);
else' could either be part of an if statement or an if statement followed
by an 'else:' label otherwise. That's not fundamentally a problem for us.
'default' is interesting as an identifier name in general so I think it's
worth considering giving it back. 

-Joe 



More information about the swift-evolution mailing list