New "Any*" names are misleading

Originator:robnapier
Number:rdar://21377102 Date Originated:14-Jun-2015 10:01 PM
Status: Resolved:
Product:Swft Product Version:2 beta 1
Classification: Reproducible:
 
The new "Any" names like AnyGenerator, AnySequence, etc. conflate implementation hiding (which is often a benefit) with the weak typing of Any and AnyObject (which are types to be avoided). "Any" should be reserved for the latter types so that it can be treated as suspicious. The previous GeneratorOf/SequenceOf names were clearer.

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!