You removed hasValue
Originator: | ash.furrow | ||
Number: | rdar://18050167 | Date Originated: | Aug 18, 2014 |
Status: | Open | Resolved: | |
Product: | Xcode | Product Version: | Xcode 6 Beta 6 |
Classification: | Other Bug | Reproducible: | Always |
Summary: 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.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com 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!
hasValue is far more intuitive
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.
I agree with you, Ash
This feels like on odd choice on Apple's part.