Swift 3: Date vs NSDate?
问题 What is the difference between the NS and non NS classes? Particularly NSDate vs Date ? Does NS represent some type of wrapper around the core non NS functionality? 回答1: Swift 3 introduced some new overlay value types for existing Foundation class types, such as Date for NSDate , Data for NSData and some more. The full list and details can be found in SE-0069 Mutability and Foundation Value Types Some of the reasons were Provide proper value semantics, let and var instead of mutable and