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
Kotlinの短絡評価について
Search
tommykw
June 28, 2018
Programming
0
380
Kotlinの短絡評価について
tommykw
June 28, 2018
Tweet
Share
More Decks by tommykw
See All by tommykw
ポートフォリオを作る
tommykw
0
120
Kotlin Compiler Plugin 入門
tommykw
0
69
Kotlin Compiler Plugin のワークフローを知る
tommykw
1
2k
コネヒトの健全性を支えるGithub Actionsの事例紹介
tommykw
0
1.8k
スクラムガイドの理解を深めるためのeduScrumガイド
tommykw
0
1.5k
改めて学ぶContracts
tommykw
10
6.7k
初めてのKotlinコントリビュート
tommykw
1
660
Kotlin Issueを投げてみよう!
tommykw
0
3.3k
AndroidのタグView作り
tommykw
0
2.9k
Other Decks in Programming
See All in Programming
CSC509 Lecture 13
javiergs
PRO
0
110
TypeScriptでライブラリとの依存を限定的にする方法
tutinoko
3
680
flutterkaigi_2024.pdf
kyoheig3
0
130
見せてあげますよ、「本物のLaravel批判」ってやつを。
77web
7
7.8k
TypeScript Graph でコードレビューの心理的障壁を乗り越える
ysk8hori
2
1.1k
Jakarta EE meets AI
ivargrimstad
0
630
2024/11/8 関西Kaggler会 2024 #3 / Kaggle Kernel で Gemma 2 × vLLM を動かす。
kohecchi
5
920
Make Impossible States Impossibleを 意識してReactのPropsを設計しよう
ikumatadokoro
0
170
AWS Lambdaから始まった Serverlessの「熱」とキャリアパス / It started with AWS Lambda Serverless “fever” and career path
seike460
PRO
1
260
Quine, Polyglot, 良いコード
qnighy
4
640
Kaigi on Rails 2024 〜運営の裏側〜
krpk1900
1
220
OnlineTestConf: Test Automation Friend or Foe
maaretp
0
110
Featured
See All Featured
Art, The Web, and Tiny UX
lynnandtonic
297
20k
Keith and Marios Guide to Fast Websites
keithpitt
409
22k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
Designing for humans not robots
tammielis
250
25k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
Done Done
chrislema
181
16k
The Power of CSS Pseudo Elements
geoffreycrofte
73
5.3k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
246
1.3M
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
Practical Orchestrator
shlominoach
186
10k
Building Applications with DynamoDB
mza
90
6.1k
Transcript
$POOFIJUP*OD ϚϚͷҰาΛࢧ͑Δ ,PUMJOͷབྷධՁʹ͍ͭͯ
ా݈ೋ !UPNNZLX !UPNNZLX ίωώτגࣜձࣾ"OESPJE&OHJOFFS
αʔϏεհ ϚϚϦ
ಥવͰ͕͢ɺ࣍ͷͭͷ,PUMJOίʔυͷҧ͍͕ Θ͔Γ·͔͢ʁ
if (true || false) { } if (true or false)
{ }
if (true || false) { } if (true or false)
{ } ಉ͡Α͏ʹݟ͑Δ͕࣮ҟͳΔڍಈ
͋Εɺ͜ͷ͕ͭಉ͡ҙຯͩͱࢥ͍ͬͯͨʜʁ if (true || false) { } if (true or
false) { }
ຊ,PUMJOͷབྷධՁʹ͍ͭͯ
ૣʮPSʯɺʮBOEʯͷίʔυΛ͍ͯΈΔ
IUUQTHJUIVCDPN+FU#SBJOTLPUMJOCMPC NBTUFSDPSFCVJMUJOTOBUJWFLPUMJO#PPMFBOLU
IUUQTHJUIVCDPN+FU#SBJOTLPUMJOCMPC NBTUFSDPSFCVJMUJOTOBUJWFLPUMJO#PPMFBOLU UIJTGVODUJPOEPFTOPUTIPSUDJSDVJUFWBMVBUJPO
བྷධՁ TIPSUDJSDVJUFWBMVBUJPO ͱʁ
བྷධՁཧԋࢉࢠͷࠨลɺӈลͷධՁΛ ද͢ධՁํ๏Ͱ࠷খධՁͱݺΕΔɻ
if (true || false) { } བྷධՁ
if (true || false) { } བྷධՁ
if (true || false) { } ʮUSVFʯ͚ͩධՁ͞ΕΔ བྷධՁ
ҰํͰ௨ৗͷཧԋࢉࢠʁ
௨ৗͷཧԋࢉࢠ if (true or false) { }
if (true or false) { } ௨ৗͷཧԋࢉࢠ
if (true or false) { } ʮUSVFʯ͕ධՁ͞ΕΔ ௨ৗͷཧԋࢉࢠ
if (true or false) { } ʮUSVFʯ͕ධՁ͞ΕΔ ௨ৗͷཧԋࢉࢠ
if (true or false) { } ʮUSVFʯ͕ධՁ͞ΕΔ ʮGBMTFʯධՁ͞ΕΔ ௨ৗͷཧԋࢉࢠ
௨ৗͷཧԋࢉࢠͷར༻ํ๏ʁ
IUUQTHJUIVCDPN+FU#SBJOTLPUMJOCMPCNBTUFSCVJME DPNNPOTSDPSHKFUCSBJOTLPUMJOJODSFNFOUBM *ODSFNFOUBM+WN$BDIFLU
IUUQTHJUIVCDPN+FU#SBJOTLPUMJOCMPCNBTUFSCVJME DPNNPOTSDPSHKFUCSBJOTLPUMJOJODSFNFOUBM *ODSFNFOUBM+WN$BDIFLU
"OESPJEͰͷར༻ intent.addFlags( Intent.FLAG_ACTIVITY_SINGLE_TOP or Intent.FLAG_ACTIVITY_CLEAR_TOP )
"OESPJEͰͷར༻ intent.addFlags( Intent.FLAG_ACTIVITY_SINGLE_TOP or Intent.FLAG_ACTIVITY_CLEAR_TOP ) Ϗοτԋࢉͱͯ͠ར༻͍ͯ͠Δ
+BWBͱ,PUMJOൺֱ
·ͱΊ
w ,PUMJOͷʮPSɺBOEʯɺʮccɺʯ ͱಉ͡ҙຯͰͳ͍ w བྷධՁͷཧԋࢉࢠɺ௨ৗͷཧԋࢉ ࢠ͕͋Δ
͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ