NSData vs Data in swift 3

Anyone know where to get the updated guide on Binary Data in swift 3?

The only thing I know from WWDC video is that "NSData" is reference type and the "Data" is value type and they have different methods of init rules and to getbytes or copybytes.

Any idea on the motivation to have new Data class in Foundation ?

For the motivation behind these changes, check out the following Swift evolution proposals:

* SE-0069 “Mutability and Foundation Value Types”

<https://github.com/apple/swift-evolution/blob/master/proposals/0069-swift-mutability-for-foundation.md&gt;

* SE-0086 “Drop NS Prefix in Swift Foundation”

<https://github.com/apple/swift-evolution/blob/master/proposals/0086-drop-foundation-ns.md&gt;

If you have specific questions beyond that please post ’em here and we’ll see what we can do to help.

Share and Enjoy

···

On 12 Aug 2016, at 05:00, CK TUNG via swift-users <swift-users@swift.org> wrote:

Any idea on the motivation to have new Data class in Foundation ?

--
Quinn "The Eskimo!" <http://www.apple.com/developer/&gt;
Apple Developer Relations, Developer Technical Support, Core OS/Hardware