Hacker News new | ask | show | jobs
by slopinthebag 68 days ago
That's a hack, not an interface lol
3 comments

You would be terrified if you realized how the whole C-based GNOME/GTK ecosystem works :)
How is it a hack? I mean, you may not like the fact that Zig does not provide syntax sugar for interfaces, but how exactly do you think they are implemented in languages that do?
As plenty of other things in an "everything is explicit" language, whose goal is to be a safer C and nothing else.

The "module" system is another hack.