ͲΜͳػೳʁ
w ίϯύΠϥʹҰ෦݅ΛՃ͑Δ͜ͱ͕Ͱ͖Δ
w ϥϯλΠϜͰͳ͘ɺίϯύΠϧ࣌ʹద༻
w ੩తղੳͰ͖Δ
w ؔʹద༻Ͱ͖Δ
w Ͱಋೖ͞Εͨ&YQFSJNFOUBMͳػೳ
w ݱ࣌Ͱͷߏจ&BSMZ1SPUPUZQF
w ͔͠͠4UEMJCͰଟར༻͞Ε͍ͯΔ
w %4-ܖΛ݁Ϳ͜ͱͰ݅ΛࢦఆͰ͖Δ
είʔϓؔͰ࠾༻͞Ε͍ͯΔ
public inline fun run(
block: () -> R
): R {
contract {
callsInPlace(block, InvocationKind.EXACTLY_ONCE)
}
return block()
}
public inline fun T.apply(
block: T.() -> Unit
): T {
contract {
callsInPlace(block, InvocationKind.EXACTLY_ONCE)
}
block()
return this
}
public inline fun with(
receiver: T,
block: T.() -> R
): R {
contract {
callsInPlace(block, InvocationKind.EXACTLY_ONCE)
}
return receiver.block()
}
public inline fun T.let(
block: (T) -> R
): R {
contract {
callsInPlace(block, InvocationKind.EXACTLY_ONCE)
}
return block(this)
}
SVO XJUI
BQQMZ MFU
Slide 22
Slide 22 text
είʔϓؔͰ࠾༻͞Ε͍ͯΔ
public inline fun run(
block: () -> R
): R {
contract {
callsInPlace(block, InvocationKind.EXACTLY_ONCE)
}
return block()
}
public inline fun T.apply(
block: T.() -> Unit
): T {
contract {
callsInPlace(block, InvocationKind.EXACTLY_ONCE)
}
block()
return this
}
public inline fun with(
receiver: T,
block: T.() -> R
): R {
contract {
callsInPlace(block, InvocationKind.EXACTLY_ONCE)
}
return receiver.block()
}
public inline fun T.let(
block: (T) -> R
): R {
contract {
callsInPlace(block, InvocationKind.EXACTLY_ONCE)
}
return block(this)
}
SVO XJUI
BQQMZ MFU
Slide 23
Slide 23 text
w 3FTVMUHFU0S&MTF
w 3FTVMUGPME
w 3FTVMUNBQ
w 3FTVMUSFDPWFS
w 3FTVMUPO'BJMVSF
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ɺΩϟϓνϟ͞Εͨมʹର͢ΔεϚʔτ
Ωϟετېࢭ͞Ε͍ͯ·͢
w ͜Εॻ͖ࠐΈͱಉ࣌ʹҙͷϥϜμΛݺͼग़͢
͜ͱ͕Ͱ͖ɺͦΕʹΑͬͯεϚʔτΩϟετ͕ແ
ޮʹͳΔͨΊͰ͢
աͳίϯύΠϥͷ੍ޚ
w ҙͷߏจΛ࣮͢Δ͜ͱ͕Մೳ
w ੍͕๛ͰOVMM
OVMM
USVF
GBMTF
@ ҙ
GBJMͳͲ͕͋Δ
w ҾෳࢦఆͰ͖Δ
w "#zܗࣜɻ"Λϝιουʹఏڙ͢Δͱ#ΛಘΔͱ͍͏ҙ
ຯͰͷܖΛܗ
w γϯϘϧΛར༻͢Δ͜ͱͰɺҾͱΓͷؒͷҼՌؔ
Λࣔ͢
!$POUSBDUϝϦοτ
Slide 57
Slide 57 text
w !$POUSBDU,PUMJOʹαϙʔτ͞Ε͍ͯͳ͍
w *%&ͷࣈ۟ղੳɺߏจղੳɺڧௐදࣔͳͲͷ੩త
ղੳΛαϙʔτ͢Δඞཁ͕͋Δ
w ຊ࣭తʹΠϯδΣΫγϣϯͰ͋ΔͨΊɺࣄଶΛ͞
Βʹෳࡶʹ͠·͢
w ӕΛ͚ͭΔ
!$POUSBDUσϝϦοτ
Slide 58
Slide 58 text
w *TTVF͕͋ΔͷͰαϙʔτ͞ΕΔ͔͠Εͳ͍
w IUUQTZPVUSBDLKFUCSBJOTDPNJTTVF,5
!$POUSBDU૬ޓӡ༻
Slide 59
Slide 59 text
ষԿͱ͋Ε৮ͬͯΈΑ͏ʂ
Slide 60
Slide 60 text
w ͕ؔ$POUSBDUΛ࣋ͭ
w $POUSBDU&GGFDUͷू·Γ
جຊߏจ
'VODUJPO
$POUSBDU
&GGFDU
&GGFDU
&GGFDU
Slide 61
Slide 61 text
جຊߏจ
'VODUJPO
$POUSBDU
&GGFDU
&GGFDU
&GGFDU
w "OOPUBUJPOT
w !&YQFSJNFOUBM$POUSBDUT
Slide 62
Slide 62 text
جຊߏจ
'VODUJPO
$POUSBDU
&GGFDU
&GGFDU
&GGFDU
w DPOUSBDU
w $POUSBDU#VJMEFS
Slide 63
Slide 63 text
جຊߏจ
'VODUJPO
$POUSBDU
&GGFDU
&GGFDU
&GGFDU
w &GGFDU
w $BMMT*O1MBDF
w DBMMT*O1MBDF
w $POEJUJPOBM&GGFDU
w JNQMJFT
w 4JNQMF&GGFDU
w 3FUVSOT
w SFUVSOT
w 3FUVSOT/PU/VMM
w SFUVSOT/PU/VMM
Slide 64
Slide 64 text
ݺͼग़͠ͷछྨ
'VODUJPO
$POUSBDU
&GGFDU
&GGFDU
&GGFDU
w DBMMT*O1MBDF
w *OWPDBUJPO,JOE
w &9"$5-:@0/$&
w "[email protected]@0/$&
w "5@-&"45@0/$&
w 6/,/08/
DPOUSBDUͷఆٛͰ
ར༻Ͱ͖ͳ͍έʔε
w ܖΛઌ಄ʹఆ͍ٛͯ͠ͳ͍
w τοϓϨϕϧؔͰͳ͍
w ؔϒϩοΫͰར༻ͯ͠ͳ͍
w HFUUFSTFUUFSʹରԠ͍ͯ͠ͳ͍
w ܖͷఆٛ࿙Ε
w JGXIFOϒϩοΫʹରԠ͍ͯ͠ͳ͍
Slide 87
Slide 87 text
ܖΛઌ಄ʹهड़͢Δ
DPOUSBDUΛ࠷ॳͷεςʔτϝϯτ
Ͱఆ͍ٛͯ͠ͳ͍
Slide 88
Slide 88 text
τοϓϨϕϧؔʹݶΔ
τοϓϨϕϧؔͰར༻ͯ͠
͍ͳ͍
Slide 89
Slide 89 text
ؔϒϩοΫͰͷΈ༗ޮ
ؔϒϩοΫͰར༻͍ͯ͠ͳ͍
Slide 90
Slide 90 text
HFUUFSTFUUFSʹηοτͰ͖ͳ͍
HFUUFSTFUUFSར
༻Ͱ͖ͳ͍
Slide 91
Slide 91 text
ܖͷఆٛ࿙Ε
ܖͷઆ໌͕ͳ͍
Slide 92
Slide 92 text
JGXIFOϒϩοΫʹରԠ͍ͯ͠ͳ͍
JGXIFOͳͲͷϒϩοΫʹ
ରԠ͍ͯ͠ͳ͍
Slide 93
Slide 93 text
ষࠓޙͷαϙʔτʁ
Slide 94
Slide 94 text
w &YQFSJNFOUBMͳػೳ
w มߋ͕͋Δ͔͠Εͳ͍
w ࣍ͷόʔδϣϯͰ͋ΔΛλʔήοτͨ͠*TTVF͕ଟ͋Δ
w IUUQTZPVUSBDLKFUCSBJOTDPNJTTVF,5
w IUUQTZPVUSBDLKFUCSBJOTDPNJTTVF,5
w IUUQTZPVUSBDLKFUCSBJOTDPNJTTVF,5
w Ͱ%FQSFDBUFEʹͳΔ͜ͱͳͦ͞͏ʂ
w ,PUMJO$POGͰʹ͍ͭͯͷൃද͕͋ΔͷͰظʂ
ࠓޙͷల։
·ͱΊ
w ͔ΒϓϩάϥϜͷਖ਼֬ੑͷ্Λࢧԉ͢ΔͨΊʹ
&YQFSJNFOUBMͳػೳͱͯ͠$POUSBDUT͕ಋೖ͞Ε·ͨ͠
w ։ൃऀ͕ίϯύΠϥʹରͯ͠ܖΛએݴ͢ΔʹΑͬͯշదͳίʔ
σΟϯάͷࢧԉʹܨ͕Γ·͢
w ػೳΛ͏͜ͱେࣄͰ͕͢ɺϑΟʔυόοΫͱͯେͰ
͢ɻྫ͑$PSPVUJOFTɺ4UEMJCରԠͳͲͷ*TTVFͷΑ͏ʹϑΟʔ
υόοΫΛͯ͠Ұॹʹվળ͍͖ͯ͠·͠ΐ͏ʂ
w ܗมΘΔ͔͠Ε·ͤΜ͕ɺͰվળ͕ਐΉͱࢥ͏ͷͰɺ
,PUMJO$POGͷͷػೳൃදΛָ͠Έʹͪ·͠ΐ͏ʂ