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
710
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
210
my tools
abouthiroppy
0
170
OSSを楽しむ話
abouthiroppy
0
200
React Nativeを触ってみた話
abouthiroppy
0
180
Other Decks in Programming
See All in Programming
Press start. Python's next generation.
willingc
PRO
3
300
iOS開発×AI駆動開発 〜最近使って便利だったスキルの話〜
nogu66
0
120
Hono + Inertia + React で LP を構築した話
oukayuka
2
190
Loosening the Reins: Go Generics Get More Flexible
kuro_kurorrr
0
360
AI に Inclusive UI を書かせよう — Design Rules Skill で Compose UI を作り直す
theoriatec2024
1
310
言葉の格闘技のススメ~紙とペンと言葉から始める、キャリアの描き方~
progresscicada
2
190
「人を評価する AI」の設計と実装
ryoyanara
0
280
Swift愛好会と私(ウホーイ) / Swift Fan Club and Uhooi
uhooi
0
100
高専、大学編入、そして未踏へ〜プロダクト開発とキャリアの歩み - Technical College, University Transfer, and On to “Mitou” / My Journey in Product Development and Career
pkmiya
0
120
Deep dive into the select statement (GopherCon UK)
jespino
0
160
VibeCodingからAgenticWorkflowへ
starfish719
0
1k
이 함수, 실패하면 어떻게 되나요? null부터 Rich Errors까지, Kotlin 에러 처리 15년
haeti2
0
110
Featured
See All Featured
Chasing Engaging Ingredients in Design
codingconduct
0
290
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.1k
[SF Ruby Conf 2025] Rails X
palkan
2
1.3k
YesSQL, Process and Tooling at Scale
rocio
174
15k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
290
Why Our Code Smells
bkeepers
PRO
340
58k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
310
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.8k
Marketing to machines
jonoalderson
1
5.7k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
400
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/