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

ES.next — 20年目のECMAScriptに向けて

nishaya
September 29, 2016

ES.next — 20年目のECMAScriptに向けて

社内勉強会で話した、ES.nextに関する話です

nishaya

September 29, 2016
Tweet

More Decks by nishaya

Other Decks in Programming

Transcript

  1. Contents • What's new in ES2015(ES6) • What's new in

    ES2016(ES7) • ECMAScriptͷࡦఆϓϩηε 3
  2. ES2015Ͱ௥Ճ͞Εͨ΋ͷ • DefaultɺRest(࢒༨Ҿ਺)ɺSpread • let ͱ const • for ..

    of จ • δΣωϨʔλ yield, yield* • Unicodeαϙʔτͷ֦ு 6
  3. ES2015Ͱ௥Ճ͞Εͨ΋ͷ • Promise • Array, Math, Number, Object, Date, RegExp΁ͷػೳ௥Ճ

    • ܕ෇͖഑ྻ(Typed Arrays) • 2ਐ਺͓Αͼ8ਐ਺ͷ੔਺Ϧςϥϧ • ຤ඌݺग़͠࠷దԽ(tail call optimization) 8
  4. ES2016Ͱ௥Ճ͞Εͨ΋ͷ(1) • Array.prototype.includes() [1, 2, 3].includes(2); // true [1, 2,

    3].includes(4); // false [1, 2, 3].includes(1, 0); // true [1, 2, 3].includes(3, 3); // false 10
  5. ES2016Ͱ௥Ճ͞Εͨ΋ͷ(2) • ΂͖৐ԋࢉࢠ 2 ** 2 // 4 2 **

    -2 // 0.25 - 2 ** 2 // SyntaxError: Unexpected token ** -(2 ** 2) // -4 (-2) ** 2 // 4 11
  6. ֤εςʔδ • Stage0 Strawman • Stage1 Proposal • Stage2 Draft

    • Stage3 Candidate • Stage4 Finished https://tc39.github.io/process-document/ 16