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
390
Kotlinの短絡評価について
tommykw
June 28, 2018
Tweet
Share
More Decks by tommykw
See All by tommykw
ポートフォリオを作る
tommykw
0
130
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
670
Kotlin Issueを投げてみよう!
tommykw
0
3.3k
AndroidのタグView作り
tommykw
0
2.9k
Other Decks in Programming
See All in Programming
LLM Supervised Fine-tuningの理論と実践
datanalyticslabo
8
1.9k
盆栽転じて家具となる / Bonsai and Furnitures
aereal
0
1.8k
return文におけるstd::moveについて
onihusube
1
1.4k
Beyond ORM
77web
11
1.6k
CQRS+ES の力を使って効果を感じる / Feel the effects of using the power of CQRS+ES
seike460
PRO
0
240
PHPUnitしか使ってこなかった 一般PHPerがPestに乗り換えた実録
mashirou1234
0
420
Package Traits
ikesyo
1
210
サーバーゆる勉強会 DBMS の仕組み編
kj455
1
300
「とりあえず動く」コードはよい、「読みやすい」コードはもっとよい / Code that 'just works' is good, but code that is 'readable' is even better.
mkmk884
6
1.4k
各クラウドサービスにおける.NETの対応と見解
ymd65536
0
250
AppRouterを用いた大規模サービス開発におけるディレクトリ構成の変遷と問題点
eiganken
1
440
asdf-ecspresso作って 友達が増えた話 / Fujiwara Tech Conference 2025
koluku
0
1.4k
Featured
See All Featured
Keith and Marios Guide to Fast Websites
keithpitt
410
22k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
Measuring & Analyzing Core Web Vitals
bluesmoon
5
210
Statistics for Hackers
jakevdp
797
220k
Designing on Purpose - Digital PM Summit 2013
jponch
116
7.1k
What's in a price? How to price your products and services
michaelherold
244
12k
Building Adaptive Systems
keathley
38
2.4k
Docker and Python
trallard
43
3.2k
Testing 201, or: Great Expectations
jmmastey
41
7.2k
Designing Experiences People Love
moore
139
23k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
26
1.9k
Into the Great Unknown - MozCon
thekraken
34
1.6k
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 བྷධՁͷཧԋࢉࢠɺ௨ৗͷཧԋࢉ ࢠ͕͋Δ
͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ