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
UFO演算子について
Search
Hirofumi Wakasugi
September 11, 2016
Programming
0
320
UFO演算子について
RubyKaigi 2016 After Party (2016-09-10)
Hirofumi Wakasugi
September 11, 2016
Tweet
Share
More Decks by Hirofumi Wakasugi
See All by Hirofumi Wakasugi
Racc Introduction
5t111111
1
420
Keep Calm and Enjoy Gachima
5t111111
3
350
Swift Functional Programming
5t111111
0
260
Middleman on Production
5t111111
0
160
名古屋Ruby会議03 高速一言感想
5t111111
3
1k
ドキュメント翻訳懺悔のLT ~進捗ダメです~
5t111111
1
590
Rubyと戯れるOSS DTM
5t111111
4
740
Rubyの拡張をCrystalで書いてみる
5t111111
0
110
YARV INTRODUCTION
5t111111
0
88
Other Decks in Programming
See All in Programming
【re:Growth 2024】 Aurora DSQL をちゃんと話します!
maroon1st
0
780
数十万行のプロジェクトを Scala 2から3に完全移行した
xuwei_k
0
280
return文におけるstd::moveについて
onihusube
1
1.1k
[JAWS-UG横浜 #76] イケてるアップデートを宇宙いち早く紹介するよ!
maroon1st
0
470
Haze - Real time background blurring
chrisbanes
1
510
Amazon S3 NYJavaSIG 2024-12-12
sullis
0
100
PHPで学ぶプログラミングの教訓 / Lessons in Programming Learned through PHP
nrslib
3
300
責務を分離するための例外設計 - PHPカンファレンス 2024
kajitack
6
1.3k
PHPで作るWebSocketサーバー ~リアクティブなアプリケーションを知るために~ / WebSocket Server in PHP - To know reactive applications
seike460
PRO
2
490
PHPUnitしか使ってこなかった 一般PHPerがPestに乗り換えた実録
mashirou1234
0
220
バグを見つけた?それAppleに直してもらおう!
uetyo
0
180
開発者とQAの越境で自動テストが増える開発プロセスを実現する
92thunder
1
190
Featured
See All Featured
Dealing with People You Can't Stand - Big Design 2015
cassininazir
365
25k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
45
2.2k
Done Done
chrislema
181
16k
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
GitHub's CSS Performance
jonrohan
1030
460k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
A designer walks into a library…
pauljervisheath
204
24k
Automating Front-end Workflow
addyosmani
1366
200k
Fireside Chat
paigeccino
34
3.1k
GraphQLの誤解/rethinking-graphql
sonatard
67
10k
Designing for Performance
lara
604
68k
StorybookのUI Testing Handbookを読んだ
zakiyama
27
5.3k
Transcript
6'0 ԋࢉࢠ ʹ͍ͭͯ (What's the Story) Spaceship Operator? Hirofumi Wakasugi
(@5t111111)
ϓϩάϥϚʔ Hirofumi Wakasugi (@5t111111)
4QBDFTIJQ0QFSBUPS DMBTT4J[F.BUUFST JODMVEF$PNQBSBCMF EFGJOJUJBMJ[F TUS !TUSTUS FOE
EFG PUIFS TUSTJ[FPUIFSTUSTJ[F FOE FOE w #BTJDPQFSBUPSGPSDPNQBSJOHUIFSFDFJWFSBHBJOTUBOPUIFSPCKFDU w "MTPLOPXOBTl6'0PQFSBUPSz MFBTUJO+BQBO w $MBTTFTNJYJOT$PNQBSBCMFNVTUJNQMFNFOU
*NQMFNFOUBUJPOPG w1PTJUJWFOVNCFSJGTFMGJTHSFBUFSUIBOPUIFS w;FSPJGTFMGJTFRVBMUPPUIFS w/FHBUJWFOVNCFSJGTFMGJTMFTTUIBOPUIFS DMBTT'PP ǘ EFG PUIFS SFUVSOJGTJ[FPUIFSTJ[F
SFUVSOJGTJ[FPUIFSTJ[F SFUVSOJGTJ[FPUIFSTJ[F FOE FOE GPPGPPUSVFGBMTF *UTIPVMESFUVSO
w :PVDBOXSJUFMJLFUIJTVTJOHJUTJNQMFNFOUBUJPO w -PPLTQSFUUZDPOWFOJFOU EPFTO`UJU "UJQGPSVTJOH DBTF GPPCBS XIFO
QVUTGPPJTFRVBMUPCBS XIFO QVUTGPPJTHSFBUFSUIBOCBS FMTF QVUTGPPJTMFTTUIBOCBS FOE
w :PVDBOXSJUFMJLFUIJTVTJOHJUTJNQMFNFOUBUJPO w -PPLT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