Defer in Swift explained

  Рет қаралды 431

donny wals

donny wals

Күн бұрын

Learn everything you need to know about Swift's defer keyword in this short video.
This video is a companion for this blog post: www.donnywals.com/what-is-def...

Пікірлер: 9
@victorriurean
@victorriurean 2 ай бұрын
👍
@BookmarkMountain
@BookmarkMountain 2 ай бұрын
Really well explained thank you!
@DonnyWalsdev
@DonnyWalsdev Ай бұрын
Thanks for watching!!
@toddlask
@toddlask 2 ай бұрын
your videos are beyond my noobie level but really interesting!
@DonnyWalsdev
@DonnyWalsdev 2 ай бұрын
Thanks! Are there any topics that you're currently learning about or interested in that I could cover?
@toddlask
@toddlask 2 ай бұрын
@@DonnyWalsdev hey thx for asking! im kinda interested in the life cycle and object structure of a running app. like the dom in the old internet explorer. im an older programmer and want to understand the modern new ways of swift. im very curious how the app sees the environment variables and settings, other views and classes... i hope this makes sense.
@nicolaiharbo2201
@nicolaiharbo2201 2 ай бұрын
I’ve been aware of the feature for a long time, but never found a reason to use it honestly. Always thought of it, as a bit useless. Is it something you use often, and if yes, for what? Like, very specific use cases would be appreciated 😊
@DonnyWalsdev
@DonnyWalsdev 2 ай бұрын
I don't use it often. Mostly for stuff like in the example from the video where there might be multiple exit points for the function and I always need to unset/restore some state. It's useful for that, but not something I use very often
@markaurelius61
@markaurelius61 2 ай бұрын
It would be to close a connection to a database, for example. Many of the things that would have been useful for though are handled by ARC.
@preconcurrency usage in swift explained
7:52
donny wals
Рет қаралды 488
React Component Lifecycle Hooks / Methods
22:02
techsith
Рет қаралды 113 М.
КАК ДУМАЕТЕ КТО ВЫЙГРАЕТ😂
00:29
МЯТНАЯ ФАНТА
Рет қаралды 10 МЛН
ПРОВЕРИЛ АРБУЗЫ #shorts
00:34
Паша Осадчий
Рет қаралды 7 МЛН
Linus Torvalds On Future Of Desktop Linux
44:18
TFiR
Рет қаралды 358 М.
Intro to async/.await in Rust
13:57
Let's Get Rusty
Рет қаралды 85 М.
What's a code smell?
0:47
donny wals
Рет қаралды 410
Programmatic Navigation in SwiftUI explained
17:50
donny wals
Рет қаралды 2,7 М.
Groundbreaking New Solar Energy System - Too Good to be True?
7:07
Sabine Hossenfelder
Рет қаралды 400 М.
Build a stretchy header with SwiftUI on iOS 18
6:45
donny wals
Рет қаралды 1,3 М.
Using Closures as Dependencies
15:18
donny wals
Рет қаралды 1,1 М.
Байкеры помогли доехать маме и сыну 😯
0:20
Фильмы I Сериалы
Рет қаралды 2,4 МЛН
Useful gadget for styling hair 🤩💖 #gadgets #hairstyle
0:20
FLIP FLOP Hacks
Рет қаралды 9 МЛН
Bringing Back Bella 🐶
0:16
watchmylegos
Рет қаралды 7 МЛН
Поздравляю, ты нашел (-а) оригинал ❤️🥹
0:17
𝐈𝐭𝐬 𝐒𝐨𝐟𝐢𝐤𝐨.𝐌𝐚𝐥𝐢𝐧𝐤𝐚
Рет қаралды 5 МЛН
Телега - hahalivars
1:00
HAHALIVARS
Рет қаралды 6 МЛН