Mitsuharu Emoto
February 22, 2019
2.1k

# kyotolt23_20190222.pdf

## Mitsuharu Emoto

February 22, 2019

## Transcript

5. ### ྫ͑͹ w ഑ྻʹΞΫηε͢Δͱ͖͸ɼ֬อͨ͠ཁૉ਺Ҏ্ͷJOEFY ʹΞΫηεͯ͠͸͍͚ͳ͍ w ΞΫηε͍ͨ͠JOEFY͕഑ྻͷཁૉʹؚ·ΕΔ͔Λࣄલʹ ֬ೝ͢Δ͜ͱͰճආͰ͖Δ let temps =

[0, 1, 2] let index = 10 if 0 <= index && index < temps.count{ let temp = temps[index] } let temps = [0, 1, 2] let index = 10 let temp = temps[index] // Ϋϥογϡ !5
6. ### ྫ֎ͱίʔσΟϯά w ϥϯλΠϜྫ֎͕ى͜Βͳ͍Α͏ʹࣄલ֬ೝΛߦ͏ඞཁ͕ ͋Δ͕ɼෳࡶͳॲཧ΍֎తཁҼͳͲͰ೉͍͠৔߹΋͋Δ w Ϣʔβʔ΍"1*͔Βͷෆఆͳσʔλೖྗ w ͍͔ͭ͘ͷॲཧ͕ॏͳͬͨෳࡶͳγʔϯ w ͍͔ͭ͘ͷϓϩάϥϛϯάݴޠʹ͸ىͬͨ͜ྫ֎ΛΩϟο

νͯ͠ɼద੾ͳॲཧͰΫϥογϡͤ͞ͳ͍ػೳ͕͋Δ !6
7. ### 4XJGUͷྫ֎Ωϟον w ྫ֎Ωϟον͸UISPXΛ࣮૷ͨ͠ϝιουʹରͯ͠ɼྫ ֎ΛΩϟονͰ͖Δ w ϥϯλΠϜྫ֎͸USZDBUDIͰғͬͯ΋ΩϟονͰ͖ͳ͍ do{ ɹtry hogehoge() }catch{

... } do{ let temps = [0, 1, 2] try let temp = temps[10] // Ϗϧυ΋Ͱ͖ͳ͍ }catch{ ... } !7

11. ### ࡞Γ·ͨ͠ w 0CK\$Ͱॲཧ࣮ߦͱىͬͨ͜ ྫ֎Λฦ͢&YD#MPDL w ͦΕΛ4XJGUͰݺͼ·͢ w σϞͰͦͷಈ͖ΛΈ͍ͯͩ͘͞ ExcBlock.execute({ let

temps = [0, 1, 2] print("\(temps[10])") }) { (exception) in print(exception) } !11

13. ### ͖͋ΒΊͳ͍ w ॲཧ෦΋0CK\$ʹͯ͠͠·͑͹͍͍ͷͰ͸ͳ͍͔ʁ w 5BCMF7JFXͷηϧߋ৽ͷσϞΛ࡞Γ·ͨ͠ // ࣮૷Πϝʔδ -(void)exc_hogehoge:(Completion)completion{ @try {

[self hogehoge]; } @catch (NSException *exception) { completion(exception); } @finally { } } !13

15. ### ͓·͚ w 'PSUJGZ IUUQTHJUIVCDPNKPIOOP'PSUJGZ  w ྫ֎ΩϟονͰ͸ͳ͘ɼΫϥογϡͨ͠ΞϓϦΛ෮ؼ͞ ͤΔͱ͍͏ຊ౰ͷࠇຐज़ w %2Ͱྫ͑ΔͱɼUSZDBUDI͸ʮṫࢮʯʹʮϗΠϛʯͰɼ

'PSUJGZ͸ʮ͠ʹʯʹʮβΦϥϧʯ w GBUBM&SSPS͔Β෮ؼͤ͞Δෆࢥٞͳ4XJGUϥΠϒϥϦ'PSUJGZ ΛಡΈղ͘2JJUB IUUQTRJJUBDPNVLJUBLBJUFNT FGFBEGC !15
16. ### ·ͱΊ w 4XJGUͰ΋ϥϯλΠϜྫ֎͸ΩϟονͰ͖·͢ w 2JJUBʹ΋౤ߘͯ͠·͢IUUQTRJJUBDPN NJUTVIBSV@FJUFNTFEDE w ιʔείʔυ͸ͪ͜ΒIUUQTHJUJPGIV/ w 0CK\$Λҙࣝͤ͞ͳ͍Α͏ʹϥΠϒϥϦΛ࡞Γ·ͨ͠

w IUUQTHJUIVCDPNNJUTVIBSV.&0&YDFQUJPO !16