u/polish_jerryin r/Zig • Recommends
On “Why Zig doesn't have/want Go-like interfaces?”
This video explains it very well using std.mem.Allocator as an example link to this video
1.2K subscribers • 1 video on Hallway
Intermediate. Assumes working knowledge.
7.3K views2 years ago2 recommendations
Programming languagesSoftware designZigDesign patterns
Tyler Calder explains how interfaces work in Zig, focusing on the Allocator interface in the standard library.
Here we discuss Zig interfaces, with particular attention to the Allocator interface in std.mem. If you have any questions, feel free to reach out in the comments, or at my discord: discord.gg/QyyXnwKqCP Write up: calder-ty.com/posts/zig_uninitiated_interfaces/What people say. Recommended as an excellent explanation of how Zig handles interfaces, using the Allocator interface as a primary example.
u/polish_jerryin r/Zig • Recommends
On “Why Zig doesn't have/want Go-like interfaces?”
u/hequ9bqn6jr2wfxsptgfin r/Zig • Recommends
On “How does this work in std.heap.GenerealPurposeAllocator.allocator()?”