On Jun 14, 2014, at 13:09 , Ken Thomases <k...@codeweavers.com> wrote:

> For convenience.

Specifically, IIUC, the point is that NSDate? and NSDate are different, 
incompatible types. The convenience comes from not having to “cast” NSDate? to 
NSDate by using the “!” operation in expressions.

On Jun 14, 2014, at 12:45 , Roland King <r...@rols.org> wrote:

> Finally if you have an implicitly optional Bool, bbb, what does 
> 
> if bbb
> 
> do?


Did you mean “implicitly unwrapped”? Then, by the above logic, the type of the 
‘if’ expression is Bool, so it would crash if ‘bbb’ is nil. Otherwise, it would 
test the boolean value of ‘bbb’.

IIUC

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Reply via email to