Welcome to the next video of the Let's Learn Zig series! Today we go over functions in Zig.
📚 Topics Covered:
1. Basic Functions
2. Returning Errors
3. Comptime functions
4. Methods on structs
Come watch me stream engine development live on Twitch / pokelego_dev
🔗 Links:
Game Engine ► https://github.com/Zephyr-Engine
Discord ► / discord
X ► https://x.com/pokelego_dev
🖥️ Equipment:
Shure MV6 Microphone: https://amzn.to/49rRfre
Logitech G903: https://amzn.to/4pxNera
32" 4K Monitor: https://amzn.to/4jDLbka
Lightbar: https://amzn.to/49xTeKA
Elgato Camlink: https://amzn.to/4jU106B
1TB SSD: https://amzn.to/4jxPFsp
Camera Tripod: https://amzn.to/3Ldr2Vs
Camera SSD: https://amzn.to/3NDKpYk
0:00 Intro
1:05 Basic Functions
4:46 Mutating function arguments
5:59 Error Unions
10:20 Passing functions as arguments
11:49 Comptime parameters
14:34 Methods on Structs
18:01 outro
Music I use: Bensound
License code: 8LDV4HESGZFJUL96
Artist: : Lunar Years
#Zig #Programming #Coding