[swift-evolution] Proposal: Universal dynamic dispatch for method calls

Chris Lattner clattner at apple.com
Thu Dec 10 23:19:24 CST 2015


On Dec 10, 2015, at 4:31 PM, Kevin Ballard via swift-evolution <swift-evolution at swift.org> wrote:
> This is why Swift has a whole keyword called `dynamic` whose job is…

Totally unrelated to your point, but FYI “dynamic” is a declaration modifier, not a keyword.  "var dynamic = 42” is perfectly legal in Swift.

This is one of the advantages of having a keyword at the start of every decl and statement: we get decl modifiers without taking keywords.  You can see the list of them here (search for DeclModifier):
https://github.com/apple/swift/blob/master/include/swift/AST/Attr.def

-Chris



More information about the swift-evolution mailing list