4 ms·
> Zig will compile different variants of maximum for each case, where maximum is called with a different set of argument types How does Zig handle the monomorp
by b3morales 4y ago
> Zig will compile different variants of maximum for each case, where maximum is called with a different set of argument types
How does Zig handle the monomorphization problem for generics in library APIs? In other words, give the `maximum` function from the blog post, if I want to distribute a binary but make that function available to clients of my binary to call with different types, what does Zig do?
- scraptor 4y agoAs far as I am aware, you can't do that.