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

I've actually shifted most of my personal dev to Rust now, and so this vtable hack has become less relevant. Rust makes it very easy to avoid virtual functions. If I had to redo this bit of code in Rust, a trait would boil any sort of update function down to its concrete type and give (I'd expect) great performance with all the convenience of virtual functions.


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

Search: