Saturday, June 13, 2015

Re: __has_feature() for nullability?

On Jun 13, 2015, at 14:00 , Jonathan Schleifer <js-apple-objc@webkeks.org> wrote:

Also, since there's no real documentation yet, what's the difference between __nullable and nullable and __nonnull and nonnull? 

It's documented here:


under the heading "Objective-C Language Enhancements". Basically you can leave out the double-underscore when it's a property attribute AND when it immediately follows a left parenthesis that encloses a type (so method return values, and method property types). This is not precisely how the above document expresses it. I remember reading about the statement in terms of parentheses, but I don't recall where that was, some other release notes perhaps, or perhaps a dev forums post.

No comments:

Post a Comment