Isn't there a way to make every member of a class be private or fileprivate by default?
I would rather have everything private by default, and just mark the funcs and vars that I want other parts of my program to see.
Much the way objectiveC did actually. Where I would only put the public stuff on the header file.
I realize not everybody would like this, so I suppose swift lets us choose our way.
So is there a way to let the programmer specify the rule that he prefers at the beggining of every file like:
@default_to_private or @private_members or @private_by_default or something?
Or maybe there is a build setting for that, that changes the behaviour on all files of the project.
Please let me know.