Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
ECMAScript
Search
Yuta Hiroto
November 21, 2016
Programming
700
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ECMAScript
https://atnd.org/events/82619
の発表資料
Yuta Hiroto
November 21, 2016
More Decks by Yuta Hiroto
See All by Yuta Hiroto
Node8.3.0について
abouthiroppy
1
3.2k
reflow/repaint
abouthiroppy
0
200
my tools
abouthiroppy
0
170
OSSを楽しむ話
abouthiroppy
0
190
React Nativeを触ってみた話
abouthiroppy
0
180
Other Decks in Programming
See All in Programming
琵琶湖の水は止められてもNet--HTTPのリトライは止められない / You might be able to stop the water flow of Lake Biwa but you can't stop Net::HTTP retries
luccafort
PRO
0
420
どこまでゆるくて許されるのか
tk3fftk
0
520
Haskell/Servantを通してWebミドルウェアを捉え直す
pizzacat83
1
600
Welcome to the "Parametricity" 🏙️ − Generic だけど Specific な世界 −
guvalif
PRO
1
180
フィードバックで育てるAI開発
kotaminato
1
120
Hatena Engineer Seminar #37「言語モデルの活用に関する研究」
slashnephy
0
530
Laravel Boostに学ぶ、AIにPHPを書かせる技術 〜OSSの実装から蒸留するエージェント制御の王道〜
kentaroutakeda
3
510
AIキャラアプリkaiwaの低遅延音声通話基盤をどう作ったか - AWS Gravitonで支える低遅延・低コストAI Agent基盤
mogamit
0
180
ビデオ通話が繋がる0.2秒で何が起きているのか
supurazako
2
150
Performance Engineering for Everyone
elenatanasoiu
0
270
霧の中の代数的エフェクト
funnyycat
1
410
symfony/aiとlaravel/boost
77web
0
140
Featured
See All Featured
BBQ
matthewcrist
89
10k
Why Our Code Smells
bkeepers
PRO
340
58k
Raft: Consensus for Rubyists
vanstee
141
7.6k
Designing for Timeless Needs
cassininazir
1
390
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
400
Paper Plane
katiecoart
PRO
2
52k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
770
Abbi's Birthday
coloredviolet
3
8.7k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
370
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2k
Transcript
ECMAScript 2016/11/20 ALT
ࣗݾհ about_hiroppy abouthiroppy TEAMS
JavaScriptͷඪ४ ECMAScript Ecma International - ECMA-262 - ECMA-402 specifications
ecma-international.org /publications/standards/Standard
Editions(only ECMA-262) • 1996/06 - ECMA-262 (ES 1) •
1998/08 - ECMA-262 (ES 2) • 1999/12 - ECMA-262 (ES 3) • 2009/12 - ECMA-262 (ES 5) • 2011/06 - ECMA-262 (ES 5.1) • 2015/06 - ECMA-262 2015 (ES 6) • 2016/06 - ECMA-262 2016 (ES 7) • 2017/?? - ECMAScript 2017 (8th Edition) developer.mozilla.org/ja/docs/Web/JavaScript/Language_Resources
Editions(only ECMA-262) • 1996/06 - ECMA-262 (ES 1) •
1998/08 - ECMA-262 (ES 2) • 1999/12 - ECMA-262 (ES 3) • 2009/12 - ECMA-262 (ES 5) • 2011/06 - ECMA-262 (ES 5.1) • 2015/06 - ECMA-262 2015 (ES 6) • 2016/06 - ECMA-262 2016 (ES 7) • 2017/?? - ECMAScript 2017 (8th Edition) ࠓίί ES2015͔ΒຖϦϦʔε ͞ΕΔΑ͏ʹܾఆ͞Εͨ ࡦఆத
ECMA TC39 ECMAScriptͷඪ४ԽΛ ߦ͏ҕһձ ओཁͳϒϥβϕϯμʔ ͷදͳͲ͕ࢀՃ͠ ͍ٞͯ͠Δ
TC39 Process stage-0 stage-1 stage-2 stage-3 stage-4 Strawman Proposal
Draft Candidate Finished tc39.github.io/process-document
TC39 Process stage-1 stage-2 stage-3 stage-4 tc39.github.io/process-document stage-0 Strawman
ΞΠσΞ tc39/proposalsͷstage-0 PRΛग़͢ɻ TC39 championΛऔಘ͠ tc39/proposals/blob/master/CONTRIBUTING.md#proposals
TC39 Process stage-0 stage-2 stage-3 stage-4 tc39.github.io/process-document Proposal stage-1
Ճ͢ΔͨΊͷέʔε࡞ (polyfills / demos) જࡏత՝ͷಛఆ
TC39 Process stage-0 stage-1 stage-3 stage-4 tc39.github.io/process-document Draft stage-2
ECMAScriptඪ४Λ༻͠ ߏจͱηϚϯςΟοΫͷ ਖ਼֬ͳઆ໌Λ͢Δɻ
TC39 Process stage-0 stage-1 stage-2 stage-4 tc39.github.io/process-document stage-3 Candidate
࣮Ϣʔβ͔Βͷ ϑΟʔυόοΫΛٻΊΔɻ ͯ͢ͷηϚϯςΟοΫɺ ߏจɺٴͼAPI͕ܾఆ͞ΕΔɻ
TC39 Process stage-0 stage-1 stage-2 stage-3 tc39.github.io/process-document stage-4 Finished
ਖ਼ࣜͳECMAScriptඪ४ʹ ؚΊΔ४උ͕Ͱ͖͍ͯΔ͜ͱ Λࣔ͢ɻ test262Ͱ༻γφϦΦςετ͕ डɺϚʔδ͞ΕΔඞཁ͕͋Δɻ 2ͭҎ্ͷޓ࣮͕ඞཁɻ
stage-4ͷProposalਖ਼ࣜʹ ࣍ظECMAScriptͷ༷ͱͳΔ
Editions(only ECMA-262) • 1996/06 - ECMA-262 (ES 1) •
1998/08 - ECMA-262 (ES 2) • 1999/12 - ECMA-262 (ES 3) • 2009/12 - ECMA-262 (ES 5) • 2011/06 - ECMA-262 (ES 5.1) • 2015/06 - ECMA-262 2015 (ES 6) • 2016/06 - ECMA-262 2016 (ES 7) • 2017/?? - ECMAScript 2017 (8th Edition)
ES2016 • Array.prototype.includes • Exponentiation Operator const arr =
[1, 2, 3]; if (arr.includes(2)) { console.log('aru!'); } if (2**3 === 8) { console.log('**'); }
ES2017 • String.prototype.padStart String.prototype.padEnd • Object.values Object.entries • Object.getOwnPropertyDescriptors •
Trailing Commas in Function Param Lists • Async Functions
string padding 'a'.padStart(5); // " a" 'a'.padEnd(5); // "a
" 'a'.padStart(3, 'b'); // "bba" 'a'.padEnd(3, 'b'); // "abb" จࣈຒΊΛߦ͏ let num = 1; // `0${num}`.slice(-2); // 01 // ☺ num.toString().padStart(2, 0); // 01 tc39/proposal-string-pad-start-end
Object.values/Object.entries const obj = { name: 'hello', age: 24
}; Object.values(obj); // Array [ "hello", 24 ] Object.entries(ob); // Array [ [ "name", "hello" ], [ "age", 24 ] ] tc39/proposal-object-values-entries
Object. getOwnPropertyDescriptors ࢦఆͨ͠ΦϒδΣΫτͷ ͯ͢ͷPropertyDescriptors Λऔಘ͢Δ attributes - value -
writable - get - set - configurable - enumerable const obj = { name: 'hello', age: 24 }; Object.getOwnPropertyDescriptors(obj); // Object { name: Object, age: Object } /* Object { name: { configurable: true, enumerable: true, value: "hello", writable: true }, age: ... } */ tc39/proposal-object-getownpropertydescriptors
Trailing Commas in Function Param Lists ΧϯϚΛڐ༰͢Δ͜ͱʹΑΓ มߋ࣌ʹ࠷ޙඌͷϓϩύςΟ
ͷΞοϓσʔτ (ΧϯϚΛ͚Ճ͑Δ)Λ͙ function post( p1, p2, ) {} post( 'hoge', 'fuga', ); tc39/proposal-trailing-function-commas
Async Functions tc39/proposal-async-iteration import 'babel-polyfill'; (async () => {
const str = await update(); console.info(str); })().catch((err) => console.error(err)); function update() { return new Promise((resolve, reject) => { setTimeout(() => resolve('finished!!'), 100); }); } ඇಉظͳॲཧΛಉظత ʹهड़͢Δ͜ͱ͕Մೳ
JavaScript͜Ε͔Β ͲΜͲΜਐԽ͍͖ͯ͠·͢ʂ
Links • tc39/ecma262 • tc39/proposals • tc39/agendas • tc39/tc39-notes •
kangax.github.io/compat-table/es6/