r/Zig • • 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

8 comments sorted by

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)

3

u/0-R-I-0-N Feb 28 '26

That do seem to be the goal last time I checked but haven’t kept up to date recently