Learning about Swift's lack of header files

The language is quite deliberately designed to minimize the amount of work needed to understand the declarations in a file. For instance, this is part of the reason why you have to explicitly state function parameter and return types—they don’t want to need to type-check the bodies of functions in other files.

4 Likes