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

> As with C, there is nothing preventing anyone from writing all of that generated code by hand. It is just far more work and much less maintainable than e.g. using C++20.

It's also still less elegant, but compile time codegen for specialisation is part of the language (build system?) with build.rs & macros. serde makes strong use of this to generate its serialisation/deserialisation code.



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

Search: