What does 'fileprivate' keyword means in Swift?
fileprivate
is one of the new Swift 3 access modifiers that replaces private
in its meaning. fileprivate
defines an entity (class, extension, property, ...) as private to everybody outside the source file it is declared in, but accessible to all entities in that source file.
private
restricts the entity in the direct enclosing scope.
Nathaniel
I'm a Master of Science in Computation, Logic and Artificial Intelligence - MS at the University of Seville. I also have a bachelor's degree as Information System Engineer. As a Software Engineer, I have more than 8 years working on several software projects. I have vast experience in back-end development with Java and Kotlin. I'm an Oracle Certified Professional, Java SE 8 Programmer, since 2017. I also have extensive experience acting as a DevOps Developer working with microservices using Openshift, Kubernetes, and Docker. I'm passionate about software development. I like to learn new things and tackle new problems. I always go behind goals and challenging projects. I keep under continuous improvement and growth. Some things that I do: Distributed Systems, Web Apps, Rest API, microservices, Machine and Deep Learning using Python, and mobile apps. I'm experienced with: Spring Boot, JHipster/KHipster, Angular, Android/Flutter, Openshift, XGBoost / LightGBM machine learning algorithms, Computer vision using Keras/Tensorflow; those are some of the skills I'm too good at.
Updated on July 08, 2022Comments
-
Nathaniel almost 2 years
I'm starting in swift and opening a project created using swift2 from xcode 8 beta, the
private
modifier were changed tofileprivate
. what does this keyword means? and how is different fromprivate
?