TIL/#100DaysOfSwiftUI
Day 12. Optionals.
box-jeon
2020. 1. 6. 23:44
https://www.hackingwithswift.com/100/swiftui/12
100 Days of SwiftUI – Day 12 – Hacking with Swift
100 Days of SwiftUI The 100 Days of SwiftUI is a free collection of videos, tutorials, tests, and more to help you learn SwiftUI faster. Click here to learn more, or watch the video below. Back to 100 Days of SwiftUI
www.hackingwithswift.com
드디어 Swift 파트의 마지막 날입니다. 처음 optional을 접했을 때는 약간 번거롭기도 해서 괜한 feature라고 생각했지만, 지금은 오히려 optional이 없는 언어를 사용하면 불안함이 느껴지기도 합니다. Optional이 등장하는 거의 모든 문법을 한번씩 언급하고 있네요.
- if let을 이용한 optional unwrapping
- guard let을 이용한 optional unwrapping
- Force unwrapping
- Implicitly unwrapped optional
- Nil coalescing
- Optional chaining
- Optional try
- Failable initializer
- Typecasting