3 ms·
Are there any plans to add syntax sugar for interacting with vtables?
by redrobein 6mo ago
Are there any plans to add syntax sugar for interacting with vtables?
- metaltyphoon 6mo agoSadly no, as fas as I'm aware. I can't think of creating vtables manually every time I need to create interfaces, I guess Zig is not for me.
- slopinthebag 6mo agoYeah I don't understand why a language cannot automate something that routine and boilerplate-y. Oh well, people like it so I won't judge, I'm happy we have choices for what languages we use. Just wish people would choose safe ones :/
- lenkite 6mo agoWish we could bribe Andrew Kelley to add a built-in for this. There are only a couple of regular ways that everyone creates these vtables. Might as well just standardize it.
- sali0 6mo agoI feel like a std lib module would be sufficient.