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
Functions in JavaScript
Search
chikoski
December 22, 2017
Technology
1
1.1k
Functions in JavaScript
chikoski
December 22, 2017
Tweet
Share
More Decks by chikoski
See All by chikoski
20210825_ossx
chikoski
0
280
festudy02-wasm
chikoski
1
950
An overview of WebAssembly; how it is used, created, and applied?
chikoski
1
660
20171018-WASM
chikoski
2
1.3k
20171002-wejs
chikoski
1
530
20170924-html5conference-wasm
chikoski
5
10k
Equivalence_in_JS
chikoski
0
1.3k
いまさら振り返るPromise
chikoski
1
520
Design and Implementation of Tech Talks
chikoski
0
110
Other Decks in Technology
See All in Technology
スタートアップで取り組んでいるAzureとMicrosoft 365のセキュリティ対策/How to Improve Azure and Microsoft 365 Security at Startup
yuj1osm
0
230
生成AIのガバナンスの全体像と現実解
fnifni
1
190
複雑性の高いオブジェクト編集に向き合う: プラガブルなReactフォーム設計
righttouch
PRO
0
120
DevFest 2024 Incheon / Songdo - Compose UI 조합 심화
wisemuji
0
120
Turing × atmaCup #18 - 1st Place Solution
hakubishin3
0
490
Oracle Cloud Infrastructure:2024年12月度サービス・アップデート
oracle4engineer
PRO
0
210
How to be an AWS Community Builder | 君もAWS Community Builderになろう!〜2024 冬 CB募集直前対策編?!〜
coosuke
PRO
2
2.8k
[Ruby] Develop a Morse Code Learning Gem & Beep from Strings
oguressive
1
170
C++26 エラー性動作
faithandbrave
2
780
日本版とグローバル版のモバイルアプリ統合の開発の裏側と今後の展望
miichan
1
130
UI State設計とテスト方針
rmakiyama
2
650
PHPからGoへのマイグレーション for DMMアフィリエイト
yabakokobayashi
1
170
Featured
See All Featured
Building an army of robots
kneath
302
44k
Keith and Marios Guide to Fast Websites
keithpitt
410
22k
The Invisible Side of Design
smashingmag
298
50k
It's Worth the Effort
3n
183
28k
Automating Front-end Workflow
addyosmani
1366
200k
Code Reviewing Like a Champion
maltzj
520
39k
Java REST API Framework Comparison - PWX 2021
mraible
28
8.3k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
132
33k
Building Better People: How to give real-time feedback that sticks.
wjessup
365
19k
Practical Orchestrator
shlominoach
186
10k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
28
900
Designing on Purpose - Digital PM Summit 2013
jponch
116
7k
Transcript
関数の話 @chikoski
function宣言と アロー関数式 GVODUJPOJE WBMVF \ SFUVSOWBMVF ^ DPOTUJE WBMVF \
SFUVSOWBMVF ^ DPOTUJEWBMVFWBMVF
関数適用 DPOTUBEE B C B C BEE BEEӕ
Ӽ㊉⇹ BEE BEEӕ Ӽ㊉⇹ BEE BEE BEE BEEӕ Ӓ Ӽ㊉⇹ӁѬ ᒉӳӶӉ ӼBEEӼ㊉⇹
パイプライン演算子 DPOTUEPVCMFOO DPOTUBEE0OFOO DPOTUNPE B C BC DPOTUWBMVF
NPE BEE0OF EPVCMF WBMVF]EPVCMF ]BEE0OF ] ONPE O https://github.com/tc39/proposal-pipeline-operator
関数適用は遅い DPOTUWBMVF NPE BEE0OF EPVCMF DPOTUWBMVF
末尾呼び出し GVODUJPOBEE B C \ SFUVSOB C ^ GVODUJPOBEE0OF B
\ SFUVSOBEE B ^ BEE0OF
末尾呼び出し GVODUJPOBEE B C \ DPOTUDB C SFUVSOD ^ GVODUJPOBEE0OF
B \ DPOTUCBEE B SFUVSOC ^ BEE0OF
ؔɿखଓ͖ͷྻʹ໊લΛ͚ͭͨͷ GVODUJPOQPXFS B \ GPS MFUJJBB \ BB B ^
SFUVSOB ^
関数はオブジェクト GVODUJPODSFBUF*E \ SFUVSOGVODUJPO WBMVF \ SFUVSOWBMVF ^ ^ DPOTUDSFBUF*E
WBMVFWBMVF
クロージャ GVODUJPOBEE4PNF WBMVF \ SFUVSOGVODUJPO B \ SFUVSOB WBMVF ^
^ DPOTUBEE4PNF WBMVFBB WBMVF DPOTUBEEBEE4PNF BEE
部分適用 DPOTUBEE B C B C DPOTUBEE4PNFBCBEE B C
DPOTUBEEBEE4PNF BEE C ӒҮҰ㕉ᡔҶӑҷӵ ᐠᡔӘक㋚ӕ㕉ᡔҶ㊉⇹ҿӶӐҮӵӒӬӶӵ BEE
部分適用の利用例 DPOTUEPN UBH BUUST\^ \ DPOTUFM EPDVNFOUDSFBUF&MFNFOU UBH GPS
DPOTULFZJOBUUST \ FMTFU"UUSJCVUF LFZ BUUST<LFZ> ^ SFUVSOFM ^
部分適用の利用例 DPOTUEJW BUUST\^ EPN EJW BUUST DPOTUBVEJP
BUUST\^ EPN BVEJP BUUST DPOTUGJMF BUUST\^ \ BUUSTUZQFGJMF SFUVSOEPN JOQVU BUUST ^
ロジックの パラメータ化 DPOTUGJOE&WFO/VNCFSTMJTU\ DPOTUSFTVMU<> GPS DPOTUOVNPGMJTU \ JG OVN \
SFTVMUQVTI OVN ^ ^ ^ DPOTUMJTU"< > DPOTUMJTU#GJOE&WFO/VNCFST MJTU" < >
ロジックの パラメータ化 DPOTUGJOE MJTU G \ DPOTUSFTVMU<> GPS DPOTUOVNPGMJTU \
JG G OVN \ SFTVMUQVTI OVN ^ ^ ^ DPOTUMJTU"< > DPOTUMJTU#GJOE JJ < >
部分適用 DPOTUGJOE MJTU G \ DPOTUSFTVMU<> GPS DPOTUOVNPGMJTU \ JG
G OVN \ SFTVMUQVTI OVN ^ ^ ^ DPOTU'JOEFSGMJTUGJOE G MJTU DPOTUG'JOEFS JJ GJOE MJTU JJ
画面に描かれるキャラ DMBTT&OFNZ\ DPOTUSVDUPS QPTJUJPO DPMMJEFS SFOEFSFS \ UIJTQPTJUJPOQPTJUJPO
UIJTDPMMJEFSDPMMJEFS UIJTSFOEFSFSSFOEFSFS ^ ^
Renderer & Collider DPOTUSFOEFSFS'BDUPSZ J DY Q DYESBX*NBHF QY QZ
J DPOTUDJSDMF$PMMJEFS S Q Q EJTU Q Q S DPOTUSSFOEFSFS'BDUPSZ JNH DPOTUDDJSDMF$PMMJEFS DPOTUJOTUBODF'BDUPSZ LMBTTQOFXLMBTT Q S D DPOTUFOFNZ'BDUPSZJOTUBODF'BDUPSZ &OFNZ DPOTUFFOFNZ'BDUPSZ OFX1PTJUJPO