Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The zig std library often builds vtables for structs in an effort to minimize runtime cost for the typical non-virtual cases. I feel it leads to creating a lot of boilerplate to effectively have virtual functions. Worse, you have to study the zig code in a case by case basis to determine how to even use this ad-hoc virtual function scheme. Surely zig can introduce virtual function support in a more ergonomic way than this, as it's so widely used in real life code and extensively in zig's own std library.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: