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

Sometimes Swift confuses Kotlin engineers.

Sometimes Swift confuses Kotlin engineers.

I'm a Kotlin engineer and just start learning Swift language. This is the story how swift confuses me :(
(Japanese only)

224e8a32760b146c3184f7451149efca?s=128

Fukui Atsuko

August 09, 2017
Tweet

Transcript

  1. KotlinΤϯδχΞ͕Swiftʹೖ໳ ͨ͠Βͪΐͬͱށ࿭ͬͨ࿩ 2017.8.9 Swift/Kotlin߹ಉษڧձ Fukui Atsuko

  2. About me • ෱Ҫರࢠ / Fukui Atsuko • @muumuumuumuu •

    Retty, Inc. • AndroidΤϯδχΞ • ͦͷલ͸૊ΈࠐΈܥAndroidͷ͓࢓ࣄ
  3. Kotlinྺ • 1೥൒લ͘Β͍͔ΒϓϩμΫτʹ౤ೖ IUUQFOHJOFFSSFUUZNFFOUSZSFUUZUPLPUMJO

  4. Swiftೖ໳͠·ͨ͠

  5. ײ૝

  6. ֓ͶKotlinͱಉ͡ϊϦͰ͍͚Δ • ಛʹ͜ͷೋ͕ͭ͋Δͷ͕خ͍͠ • ֦ுؔ਺ • ஗ԆධՁ • lazy͕letʹ࢖͑Δͱ΋ͬͱྑ͔ͬͨ

  7. Ͱ΋ɺ ޷͖ʹͳΕͳ͍ͱ͜Ζ΋͋Δ

  8. ޷͖ͳͳΕͳ͍ͱ͜Ζ • ωʔϜεϖʔε͕ͳ͍ʂʂ • (KotlinͰ͍͏) ఆ਺Λએݴ͢Δ࣌ʹͲ͏͢Δ ͷʁʁ

  9. ެࣜυΩϡϝϯτᐌ͘ ݴޠ ࠶୅ೖՄ ,FZXPSE %FTDSJQUJPO 4XJGU ࠶୅ೖෆՄ MFU :PVEFDMBSFDPOTUBOUTXJUI UIFMFULFZXPSE

    ࠶୅ೖՄೳ WBS BOEWBSJBCMFTXJUIUIFWBS LFZXPSE ,PUMJO ࠶୅ೖෆՄ WBM "TTJHOPODF SFBEPOMZ  MPDBMWBSJBCMF ࠶୅ೖՄೳ WBS .VUBCMFWBSJBCMF
  10. KotlinͰఆ਺ͬͯݴͬͨΒ͜ΕͰ͠ΐ • جຊతʹconstΛ͚ͭΔ • τοϓϨϕϧͰએݴ • Ϋϥεͷcompanion objectͷத

  11. Swiftͩͱʁ • τοϓϨϕϧͰએݴͰ͖Δ͕ɺ໊લͷিಥʹ ؾΛ͚ͭΔඞཁ͕͋Δ • ωʔϜεϖʔε͕ͳ͍ͷͭΒ͍ • Classͷ಄Ͱstatic let

  12. ఆ਺ͷهड़ͷ࢓ํ ݴޠ ه๏ ྫ 4XJGU -PXFS$BNFM $BTF UIJT*T4XJGU$POTUBOU ,PUMJO 4OBLF$BTF

    5)*4@*4@,05-*/@$0/45"/5
  13. ·ͱΊ • SwiftʹωʔϜεϖʔεཉ͍͠ • Swiftͷఆ਺ͷॻ͖ํʹ׳Εͳ͍ • Kotlin͸͔Θ͍͍

  14. ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ