Optional binding and optional chaining

  Рет қаралды 13,038

Code Cat

Code Cat

Күн бұрын

Пікірлер: 17
@ramgade2433
@ramgade2433 5 жыл бұрын
Greate explanation in very simple way.
@CodeCat15
@CodeCat15 5 жыл бұрын
Thank you Ram, feel free to ask questions on this if there’s something i missed and do subscribe to the channel if it has helped you and share it with your friends who are learning swift and request them to subscribe as well. Would appreciate it.
@prashantshrivastava8571
@prashantshrivastava8571 3 жыл бұрын
I have listen your most of the video in single day to revise the concepts, you are really awesome. 1000 likes for your videos.
@CodeCat15
@CodeCat15 3 жыл бұрын
Thank you Prashant, I am glad the channel is helpful :) do share it with your iOS group too
@ajaysinghazad
@ajaysinghazad 3 жыл бұрын
I am loving your videos, that are really helping me. Let me know if you have any video on MVVM two way binding!
@rahuljamba5846
@rahuljamba5846 3 жыл бұрын
Great Sir Thanks a lot for simple way to complex topic.
@abhaykumar24j
@abhaykumar24j 2 жыл бұрын
Keep making videos.. great 👍🏼
@IleshPanchalOnly
@IleshPanchalOnly 3 жыл бұрын
Yes, I used already since long but doesn’t know the technical terms. Thanks
@CodeCat15
@CodeCat15 3 жыл бұрын
Awesome am glad it helped
@kaberidas6109
@kaberidas6109 2 жыл бұрын
What is the difference between if let and guard let??
@riffatkhan6006
@riffatkhan6006 2 жыл бұрын
Hy! Bro how i can answer someone verbally if he asks me for difference between optional binding and optional chaining
@Puneet843
@Puneet843 4 жыл бұрын
when to use 'if let' statement and 'guard let' statement.?
@CodeCat15
@CodeCat15 4 жыл бұрын
Sorry to respond to this so late, for some reason I am not getting notification of the comments. We can use guard..let when we have nested if statements, nested if..let are so ugly and have zero code readability. Let's say your function has one single if statement and in the else you are writing code to exit the function like "return false" or just "return" something like that then in that case i would use guard let because the else of the guard will automatically exit the function and that's the good use case to when you can use guard. In general I use if..let for single conditional checks, only when I have 3-4 if.let that's where I switch to guard let for better code readability. We should also know the variable declared in guard let is available even after the scope of guard so just be careful when you name guard variables, I usually name them like "guard_emailString" that way I know that this variable is coming from a guard statement and is not a global variable. Hope this answers your question, If not let me know we can discuss it further and once again I am sorry I did not see this question earlier.
@Puneet843
@Puneet843 4 жыл бұрын
@@CodeCat15 thank you
@CodeCat15
@CodeCat15 4 жыл бұрын
Puneet Mahajan just want to know if i was able to answer your query? If not then please don’t hesitate to ask more questions the more you ask the better you will understand 😊👍
@Puneet843
@Puneet843 4 жыл бұрын
@@CodeCat15 I used to use 'guard let' and 'if let' statement in my code but I wasn't clear before when to use both. But now I'm clear. Thank you.
@CodeCat15
@CodeCat15 4 жыл бұрын
@@Puneet843 cool glad I was able to answer your question 🤘Happy weekend buddy
Error Handling Swift Tutorial in Hindi
14:12
Code Cat
Рет қаралды 8 М.
Difference between weak and unowned in Swift
16:20
Code Cat
Рет қаралды 16 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
What is Any and AnyObject in swift iOS Hindi Tutorial
10:57
Code Cat
Рет қаралды 15 М.
Lazy stored property in Swift Hindi tutorial
11:17
Code Cat
Рет қаралды 14 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН