Swift - Stack vs Heap

Поділитися
Вставка

КОМЕНТАРІ • 22

  • @matveyshishov
    @matveyshishov 6 місяців тому +1

    That sound from Mario should play in all IDEs when there is an error, by default.

  • @tokero5199
    @tokero5199 2 роки тому +1

    Not sure how I ended up here, but I liked the video. This seems to be more about reference types vs value types and not really about the difference between the stack and the heap though...

    • @swiftarcade7632
      @swiftarcade7632  2 роки тому

      Hi John. Fair point. I focused on the reference vs value because to me, this is where stack vs heap affects the way you code.

  • @Nurckye
    @Nurckye 2 роки тому +1

    Nice videos, really something that stands out from the other swift / iOS videos. Subscribed

    • @swiftarcade7632
      @swiftarcade7632  2 роки тому +1

      Thank you Radu. So glad you found us. Welcome to the channel :)

    • @NiclasJeppsson
      @NiclasJeppsson 2 роки тому

      Totally agree with this comment. Great job :)

  • @user-gz8gg2pl7r
    @user-gz8gg2pl7r 2 роки тому

    Hi from Cyprus! I was looking for what is different class vs struct and i found you video. It's amazing!

    • @swiftarcade7632
      @swiftarcade7632  2 роки тому +1

      Hello Cyprus! So glad you are here. Welcome to the channel.

  • @maazsurti
    @maazsurti Рік тому

    Thanks you very much. Very informative video!

  • @roshanthapa25
    @roshanthapa25 Рік тому

    This was a very nice video. Thanks a lot!

  • @eyupcimen
    @eyupcimen 8 місяців тому

    this is very helpfull thanks for this video.

  • @luiszambon5082
    @luiszambon5082 2 роки тому

    Very good content as usual! Thanks for sharing!!

  • @mattdamon2532
    @mattdamon2532 2 роки тому

    Thank you very much sir!

    • @swiftarcade7632
      @swiftarcade7632  2 роки тому

      Hey you most welcome Matt. Thanks for stopping by. Love your movies! :)

  • @ariyaman90
    @ariyaman90 2 роки тому

    👌👌👌👌Very nice and clear!!! Thank you :)

    • @swiftarcade7632
      @swiftarcade7632  2 роки тому +1

      Thank you Amir. This was a fun one to make. Cheers.

  • @nirajmehta3102
    @nirajmehta3102 2 роки тому

    Nice videos,

  • @JonatanEdOrtiz
    @JonatanEdOrtiz 2 роки тому

    Great!

  • @pandalanhukuk804
    @pandalanhukuk804 11 місяців тому

    What about closures in structs?

  • @user-dg5sv8el5w
    @user-dg5sv8el5w 2 місяці тому

    It's not correct to say that the classes allocated on heap and structs are allocated on stack.
    It's incorrect, the allocation memory first of all depends on scope, and only secondly depends on data type.
    There are several cases when struct can be allocated on heap - when struct is a variable of class, or in escaping closure, or in inout param, etc.
    So it's an incorrect statement. The correct statement is that on the stack allocated function variables and arguments and on the heap allocated dynamic objects or objects that have some lifetime.
    So classes and structs it's about value and reference types, but not about stack and heap