Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Swift Weekly 10/4

Johnlin
October 04, 2016

Swift Weekly 10/4

Johnlin

October 04, 2016
Tweet

More Decks by Johnlin

Other Decks in Programming

Transcript

  1. From the core • Xcode 8 ਖ਼ࣜᚙ䆋 • Swift 3

    ਖ਼ࣜᚙ䆋 • Swift 3.0.1 preview 2
  2. Evolution • SE-0139 ࣗಈ᫚׵Ꮠᆴܕผ੒ NSNumber, Cocoa Struct ੒ NSValue •

    SE-0140 ᫚׵ Optional ੒ Any ࣌ᚙग़ܯࠂɼࣗಈ᫚ ׵ Optional ੒ሏతᆴ҃ੋ NSNull • SE-0138 UnsafeRawBufferPointer
  3. SE-0139 ࣗಈ᫚׵Ꮠᆴܕผ੒ NSNumber, Cocoa Struct ੒ NSValue • Int, UInt,

    Double, Float ౎။ࣗಈ᫚੒ NSNumber
 
 
 
 

  4. SE-0139 ࣗಈ᫚׵Ꮠᆴܕผ੒ NSNumber, Cocoa Struct ੒ NSValue • ୠੋ Int8

    ~ Int64ɼUInt8 ~ Uint64 ෆ။ࣗಈ᫚׵
 
 
 
 
 
 

  5. SE-0139 ࣗಈ᫚׵Ꮠᆴܕผ੒ NSNumber, Cocoa Struct ੒ NSValue • Cocoa Struct

    (CGPoint౳౳) ໵ෆ။ࣗಈ᫚׵੒ NSValue
 
 
 
 
 
 

  6. SE-0139 ࣗಈ᫚׵Ꮠᆴܕผ੒ NSNumber, Cocoa Struct ੒ NSValue • Ҏޙશ෦౎။ࣗಈ᫚׵ •

    Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Float, Double, Int 
 ။᫚੒ NSNumber • NSRange ,CGPoint ,CGVector ,CGSize ,CGRect ,CGAffin eTransform ,UIEdgeInsets ,UIOffset ,CATransform3D , CMTime ,CMTimeRange ,CMTimeMapping ,MKCoordinate ,M KCoordinateSpan ,SCNVector3 ,SCNVector4 ,SCNMatrix4 
 ။᫚੒ NSValue
  7. SE-0140 ᫚׵ Optional ੒ Any ࣌ᚙग़ܯࠂɼ ࣗಈ᫚׵ Optional ੒ሏతᆴ҃ੋ NSNull

    ࡏObj-C ՄҎ༻ _Nonnull ိḼ໌ჩᏐෆՄҎੋNull, ෆখ৺ၚ Null త࣌ީ။༗ܯࠂ㘤ଉ
 
 
 
 
 
 
 

  8. SE-0140 ᫚׵ Optional ੒ Any ࣌ᚙग़ܯࠂɼ ࣗಈ᫚׵ Optional ੒ሏతᆴ҃ੋ NSNull

    Swift త Any ՄҎੋ೚ԿᆴɼแؚOptional<T>.noneɼ
 Any ၚਐ Obj-C ࣌။ඃ᫚׵੒ෆಁ໌త idɻ
 ୠੋෆ။༗ _Nonnull తܯࠂ 
 
 
 
 
 
 

  9. SE-0140 ᫚׵ Optional ੒ Any ࣌ᚙग़ܯࠂɼ ࣗಈ᫚׵ Optional ੒ሏతᆴ҃ੋ NSNull

    • ະိᙛ᫚׵ Optional ੒ Any ࣌။༗ܯࠂɻ • ೺ Optional ᙛ੒ id ၚਐ Obj-C ࣌ɼ೗Ռሏੋ .none बࣗಈ᫚׵੒ NSNullɼෆવबၚሏਅਖ਼తᆴɻ