Загрузка...

Demystifying Statements in Swift: Why can't you return an if statement (In Swift 5.8 and earlier)?

In this video, you will understand what are statements in Swift (5.8) and we will explore the different kinds. We also going to compare them between expressions to understand why a return statement cannot return an if (yet).

Whether you're a beginner or an experienced Swift developer, this video will help demystify statements and expressions and improve your understanding of the language.

------
Videos Related:
* Expressions: https://youtu.be/gz4VU-Vwz30
* The Composable Architecture (TCA): https://www.youtube.com/playlist?list=PLHWvYoDHvsOVo4tklgLW1g7gy4Kmk4kjw
* Error Handling (throw): https://youtu.be/Lh1B5BsAAK8
* available/unavailable: https://youtu.be/-L4_EEJJEHQ

-----
Resources:
* Expressions: https://docs.swift.org/swift-book/documentation/the-swift-programming-language/statements
* if and switch expressions: https://github.com/apple/swift-evolution/blob/main/proposals/0380-if-switch-expressions.md
* Use case for #sourceLocation: https://forums.swift.org/t/whats-the-usage-and-scenes-to-be-used-of-sourcelocation/14328

-----
Contact:
https://twitter.com/swiftandtips
https://iosdev.space/@swiftandtips
https://www.linkedin.com/company/swiftandtips

Finally, ask me for a video you would like to see next 😄!

------
Lucid Dreaming by | e s c p | https://escp-music.bandcamp.com
Music promoted by https://www.free-stock-music.com
Creative Commons / Attribution 4.0 International (CC BY 4.0)
https://creativecommons.org/licenses/by/4.0/

Видео Demystifying Statements in Swift: Why can't you return an if statement (In Swift 5.8 and earlier)? канала Swift and Tips
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять