Zig polymorphism (anytype, comptime interfaces, tagged unions)
Автор: ComputerBread
Загружено: 2025-06-11
Просмотров: 7115
Hello, this is ComputerBread,
back at it again, with a new episode of zig stuff, in the previous video I talked about runtime interfaces, now it's time to talk about different ways to write polymorphic code: anytype, comptime interfaces, tagged unions, inline else...
zig 0.14.1
Cool stuff, hope you will enjoy!
Zig playlist: • zig
Leetcode playlist: • Interview Question
JavaScript playlist: • JavaScript
To support me (if you feel like it): https://ko-fi.com/computerbread/
Cheatcheet/mindmap: https://ko-fi.com/s/34966c8fb1
Twitter: / computerbread
Subscribe: / @computerbread
----
links:
code snippets: https://github.com/ComputerBread/vide...
https://mitchellh.com/writing/ghostty...
• [#32] Ghostty: A New Terminal Emulator Wri...
/ comptime_interfaces_in_zig
https://github.com/permutationlock/zi...
https://github.com/ghostty-org/ghostt...
https://matklad.github.io/2025/04/21/...
---
Chapters:
00:00 Introduction
00:19 anytype
02:26 Zimpl
04:24 Comptime interfaces
05:10 Tagged unions
07:01 bonus time
08:01 mental breakdown
Step by step guide easy to understand, well explained, amazing, awesome, the best video you've ever seen!
zig programming language, interface, polymorphism, C, C++, rust, odin, low level programming, comptime, static dispatch
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: