Zig Master: Let's Create a Stack!

แชร์
ฝัง

ความคิดเห็น • 9

  • @EliasDorneles
    @EliasDorneles 5 หลายเดือนก่อน +4

    This is great stuff, man!
    This example is exactly what I needed: it answers several questions I had and gives a great example of generic data structure!
    Thank you so much for this!

  • @thilina91
    @thilina91 3 หลายเดือนก่อน +1

    thanks for the great video on creating generic data types. cheers!

  • @raptorate2872
    @raptorate2872 6 หลายเดือนก่อน +6

    Hello Dude thanks for all your help, you are a lifesaver for those who want to learn zig. May i ask how to navigate through the 2 different playlists you have. It would seem like they have overlapping concepts.

    • @dudethebuilder
      @dudethebuilder  6 หลายเดือนก่อน +4

      Thanks for the support. I would recommend watching the videos in Zig in Depth first, specifically those that pertain to the language and not the build system or project tools. Then you can catch up with recent changes with the videos in Zig Master.

  • @juanpablouriolbalbin887
    @juanpablouriolbalbin887 5 หลายเดือนก่อน +2

    I think you are allocating new memory even though you still have space for one more element. In your example, you double the capacity from 8 to 16 when you add the 7th element (index 6). Therefore, you still have space for an 8th element.

    • @dudethebuilder
      @dudethebuilder  5 หลายเดือนก่อน +3

      Correct! I noticed that just as I finished recording the video and added a note to the description. The actual code on the repo has been fixed. Thanks for the heads-up.