Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nullability and Generics #107

Merged

Conversation

ZevEisenberg
Copy link
Collaborator

Closes #31

@ZevEisenberg
Copy link
Collaborator Author

@jvisenti for your perusal.


@end
// clang-format off
Copy link
Contributor

Choose a reason for hiding this comment

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

#? Should this be clan-format on?


/**
* Calls [self debugStringIncludeImageAddresses:YES]
*
* @return The debug string, including pointer addresses of attached images.
*/
- (NSString *)debugString;
- (NSString *_Nonnull)debugString;
Copy link
Contributor

Choose a reason for hiding this comment

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

#? doesn't - (nonnull NSString *)debugString work (here and elsewhere)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

D'oh, so that's how you do it. I stopped at the first one I successfully got to compile. Fixing.

Copy link
Contributor

Choose a reason for hiding this comment

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

_Nonnull and its ilk are for C functions (and therefore blocks as well).

@jvisenti
Copy link
Contributor

jvisenti commented Mar 4, 2016

@ZevEisenberg Looks good overall. You probably want to consider maintaining pre-Xcode 7 support via compatibility macros e.g. https://github.com/Raizlabs/RZImport/blob/master/Classes/RZCompatibility.h

@ZevEisenberg
Copy link
Collaborator Author

@jvisenti should be good to go now. I haven't tested in Swift. Would you mind checking it out in your Swift project and seeing if the edge cases with implicitly unwrapped optionals that you reported are handled correctly now?

@jvisenti
Copy link
Contributor

jvisenti commented Mar 7, 2016

@ZevEisenberg Confirmed that this behaves as expected in a Swift app.

ZevEisenberg added a commit that referenced this pull request Mar 7, 2016
…ity-and-generics

Nullability and Generics
@ZevEisenberg ZevEisenberg merged commit 1d96b34 into master Mar 7, 2016
@ZevEisenberg ZevEisenberg deleted the bugfix/zeveisenberg/31-nullability-and-generics branch March 7, 2016 17:56
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.

2 participants