Swift 3: Date vs NSDate?

后端 未结 5 1175
渐次进展
渐次进展 2020-12-01 10:08

What is the difference between the NS and non NS classes? Particularly NSDate vs Date? Does NS represent some type of wrapper around

5条回答
  •  情深已故
    2020-12-01 11:09

    As well as the answers given above, in a more surface literal design sense, NS was a prefix given to everything in the NextStep days, before Steve Jobs was called back to Apple, and so was a natural part of Objective-C syntax.

    Fast forward to the development of Swift, they needed a point of obvious difference, abd it could well have been CL as a prefix, (for Chris Lattner) but obviously chose to have an absence of any prefix

提交回复
热议问题