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

Swift5のOwnership

8pockets
August 21, 2018

 Swift5のOwnership

8pockets

August 21, 2018
Tweet

Other Decks in Programming

Transcript

  1. Swift5ʹ͍ͭͯ Early 2019 ϦϦʔε༧ఆ • ABI(Application Binary Interface)ͷ҆ఆԽ • ඪ४ϥΠϒϥϦʹඞཁͱͳΔδΣωϦΫε

    • API resilience • Memory ownership model ࢀߟɿhttps://github.com/apple/swift-evolution
  2. Ownershipͷ̏ͭͷػೳ • ഉଞଇ - The Law of Exclusivity • shared஋

    - Shared values • ίϐʔෆՄೳͳܕ - moveonly
  3. ഉଞଇ ؔ਺ͷJOPVUҾ਺ʹม਺Λ౉͢ GVODGPP @UNQJOPVU4USJOH @UNQJOPVU4USJOH \^ WBSB4USJOHlUFTU GPP B B

    ˠিಥ NVUBUJOHGVODͳϝιουΛݺͿ WBSY FYUFOTJPO*OU\ NVUBUJOHGVODBTTJHO3FTVMU0G @GVODUJPO *OU \ TFMGGVODUJPO  ^ ^ YBTTJHO3FTVMU0G\Y ^ˠিಥ
  4. END