Open iccir opened 4 years ago
Overview of new property system:
@property
always synthesizes a backing ivar.private
attribute._
+ property name) when inside of a method definition.The --simple-ivars
flag is now always true (not a change from 2.x, but a change from previous 3.0 builds)
Moving forward, properties are going to be simpler. This aligns with some long term goals of better taking advantage of ES6 classes.
@property
will always synthesize a backing ivar with a_
prefix.@synthesize
goes away.@dynamic
goes away.@observe
is useful, but in practice we only use a single case (change
+after
). We also always call a single "update" method regardless of the changes.