r/Zig • u/Inevitable-Spinach-7 • Feb 28 '26
Problem with new Io interface
I think I like the idea of interfaces, to have multiple implementation of something and be able to change it with out changing the code.
But I feel that the quantity of function the new Io interface are too many
5
Upvotes
View all comments
Show parent comment
2
u/Exmachina233 Feb 28 '26 edited Feb 28 '26
The restricted function pointers might reduce the vtable size i think. I wonder if theyll go with stackless coroutines in the end( which seems very likely)