On Feb 25, 2016, at 15:11 , Jens Alfke <j...@mooseyard.com> wrote:
> 
> it’s kind of dangerous since you could get the type wrong

It’s another example of the “any cast is a bug waiting to happen” problem 
that’s inherent in C-like languages.

For this situation it would be nice if there was a cast like this:

        [hostArray addObject: (_Nonnull) url.host];

If it did a runtime check for not nil, that would be even better.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (Xcode-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to