4 ms·
To give some context: this article is meant for people who program in Zig who might be interested in the new `inline else` switch case feature, and the metaprog
by kristoff_it 4y ago
To give some context: this article is meant for people who program in Zig who might be interested in the new `inline else` switch case feature, and the metaprogramming it enables.
If you're looking for more general purpose interfaces (eg vtables) than what tagged unions can provide, then other material will be of more interest to you:
https://zig.news/david_vanderson/interfaces-in-zig-o1c https://zig.news/david_vanderson/interfaces-in-zig-o1c
https://zig.news/david_vanderson/faster-interface-style-2b12 https://zig.news/david_vanderson/faster-interface-style-2b12
https://www.youtube.com/watch?v=AHc4x1uXBQE https://www.youtube.com/watch?v=AHc4x1uXBQE