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

ES2020 で来る7つの新機能

44c8b22341e580eba01ac54024aed0c1?s=47 53
May 08, 2020

ES2020 で来る7つの新機能

44c8b22341e580eba01ac54024aed0c1?s=128

53

May 08, 2020
Tweet

Transcript

  1. ES2020Ͱ࢖͑Δ7ͭͷ৽ػೳ גࣜձࣾGameWith ࣾ಺LT ྩ࿨2೥5݄8೔ EcmaScript 11ճ໨ͷϦϦʔε

  2. ୞໺ ߶ ϑϩϯτΤϯυΤϯδχΞ Flash → Webήʔ → Ձ֨ൺֱαΠτˠ Unity →

    WebϝσΟΞˠ YouTuberେखࣄ຿ॴ ˠGamewith(͍·ίί)
  3. QoL ࢪࡦ

  4. ि4Ͱ12km Run • ݄ؒ 200kmΦʔόʔͰނোϦεΫ • 2೥લʹΞΩϨε伳அ྾ • ଍ఈےບԌ •

    ଍ͭ΅ϩʔϥʔ ¥ 3,880ԁ • ࢓ࣄ͠ͳ͕Β ࠷ۙ͸ϚεΫʹ׳Ε͖ͯͨ
  5. ES2020 https://github.com/tc39/proposals

  6. globalThis

  7. ࣮ߦ؀ڥ ͞·͟· • Webϒϥ΢βʔ • αʔόʔαΠυ • εϚϗ • ϩϘοτ

  8. άϩʔόϧ ΦϒδΣΫτ ඞͣଘࡏ͢Δ❗

  9. None
  10. ಠࣗͷΦϒδΣΫτϞσϧ

  11. ෳ਺ͷ؀ڥͰಈ͘ίʔυ ؀ڥΛ൑ఆ͢Δؔ਺Λ༻ҙ͍͕ͯͨ͠…

  12. Ұ؏ͨ͠ํ๏ͰΞΫηε ͜Ε͔Β͸ globalThis ϓϩύςΟ Ͱඪ४Խ

  13. Promise.allSettled( )

  14. Ҿ਺ ϓϩϛεͷ഑ྻ

  15. Promise.allsettled( )

  16. Promise.allsettled( )

  17. ݁Ռ͕هड़͞Εͨ഑ྻ ݁ՌΛϑΟϧλϦϯά͢Δͷ͕༰қʹͳΔ

  18. Null ߹ମԋࢉࢠ

  19. exp ?? exp null ͔ undefined ͷͱ͖͚ͩӈลΛฦ͢

  20. Null ߹ମԋࢉࢠ

  21. Null ߹ମԋࢉࢠ

  22. Null ߹ମԋࢉࢠ

  23. exp ?? exp σϑΥϧτ஋ Λࢦఆ͢ΔͨΊͷ৽͍͠ํ๏

  24. ΦϓγϣφϧνΣʔϯԋࢉࢠ

  25. ΦϒδΣΫτͷ தؒ஋νΣοΫ ΦϒδΣΫτ ΍ null/undefined Λฦ͢ API

  26. ΦϒδΣΫτͷωετ಺෦ϓϩύςΟ

  27. ΦϒδΣΫτͷωετ಺෦ϓϩύςΟ

  28. BigInt

  29. Number.MAX_SAFE_INTEGER 2⁵³ ( 9007199254740991 )

  30. BigInt ຤ඌ n ͕෇͘

  31. Number ͱڞଘ͸೉͍͠ ܕ͕ҧ͏ͷͰԋࢉͰ͖ͳ͍

  32. Number ͱڞଘ͸೉͍͠ ਫ਼౓͕୲อ͞Εͯͳ͍

  33. dynamic import( )

  34. ಈతϩʔυ εΫϦϓτಈ࡞࣌ʹΞϓϦέʔγϣϯͷҰ෦Λऔಘ

  35. dynamic import( ) αϙʔτͷྫ • ଟΧࠃαϙʔτ౳ͰɺϢʔβʔݴޠʹඞཁͳεΫϦϓτ͚ͩΛϩʔυ • ΞϓϦέʔγϣϯΛࡉ੾Εʹͯ͠ɺ ஗ԆϩʔυʹΑͬͯύϑΥʔϚϯεɾνϡʔχϯάΛߦ͏ •

    Ϟδϡʔϧ͕ݟ͔ͭΒͳ͍৔߹ͷಈ࡞Λ࣮૷Ͱ͖Δ
  36. ίʔϧόοΫ

  37. async / await

  38. ੩తΠϯϙʔτͱͷҧ͍ Ϗϧυ࣌ʹධՁ͞ΕΔ੩తΠϯϙʔτͱൺֱ • ಈతΠϯϙʔτ͸ɺΠϯϙʔτͨ͠εΫϦϓτ͔Β΋Մೳ • εΫϦϓτͷͲͷείʔϓ͔ΒͰ΋ɺಈతΠϯϙʔτՄೳ • ಈతΠϯϙʔτ͸ɺ੩తจࣈྻ͚ͩͰ͸ͳ͘ ςϯϓϨʔτจࣈྻ΋ड͚෇͚Δ

  39. String.protype.matchAll

  40. ΠςϨʔλʔΛฦ͢ ਖ਼نදݱʹରͯ͠Ϛον͢Δશจࣈྻ

  41. จࣈྻΛݕग़

  42. ݁ՌΛྻڍ

  43. ݁ՌΛ഑ྻԽ

  44. ͍͞͝ʹ • ChromeͰ͸શ෦࢖͑·ͨ͠ • BabelϓϥάΠϯ༻ҙ͞Ε͍ͯ·͢ • TC39 ͷٞࣄ࿥౳͸GithubͰݟΒΕΔͷͰɺ ະདྷͷJSͷ࢓༷͕֞ؒݟΕ·͢

  45. Fin.