You removed hasValue

Number:rdar://18050167 Date Originated:Aug 18, 2014
Status:Open Resolved:
Product:Xcode Product Version:Xcode 6 Beta 6
Classification:Other Bug Reproducible:Always
Xcode 6 Beta 6 removed the hasValue member of Optional. Please put it back.

Steps to Reproduce:
1. Make an optional.
2. Try to invoke hasValue
3. Weep.


hasValue is far more intuitive

By mihirpmehta at July 30, 2015, 11:36 a.m. (reply...)

Engineering has determined that this issue behaves as intended based on the following:

This was an intentional change. We have canonicalized around checking for nil using '=='.

Please update your bug report to let us know if this is still an issue for you.

By ash.furrow at Aug. 20, 2014, 11:12 a.m. (reply...)

I agree with you, Ash

This feels like on odd choice on Apple's part.

By alexisgallagher at Aug. 20, 2014, 8:41 p.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!