Skip to content

Conversation

@maicki
Copy link
Contributor

@maicki maicki commented Jan 31, 2018

No description provided.

This should result in much better performance for _ASDisplayLayers.
*/
@property (nonatomic, weak) ASDisplayNode *asyncdisplaykit_node;
@property (nullable, nonatomic, weak) ASDisplayNode *asyncdisplaykit_node;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weak properties are nullable by default.

Copy link
Contributor Author

@maicki maicki Jan 31, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rather go with the explicit case. You are right in theory the compiler is creating the exact same output, but if you look into Apple's header, e.g. UITableView.h weak properties like delegate or dataSource are still annotated with nullable.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@maicki maicki merged commit 38b76e0 into master Feb 1, 2018
@maicki maicki deleted the MSImproveNullableAnnotationsInDisplayViewLayer branch September 8, 2018 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants