[swift-users] Question out of curiosity: why "func"
clattner at apple.com
Thu Apr 7 23:44:14 CDT 2016
> On Apr 4, 2016, at 7:25 AM, Jim Malak via swift-users <swift-users at swift.org> wrote:
Swift’s grammar follows a very regular structure, where declarations are introduced with a keyword. This structure has a number of advantages when parsing. For example, it allows “modifiers” like “mutating” and “public” to be context sensitive identifiers instead of themselves being keywords. It also helps with more subtle things like error recovery in the face of invalid code that produces parsing errors.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-users