@Jenztsch @FizzyOrange it would be nice if rust had a feature like inline macros for this kind of behavior just for reducing duplications when you don’t need to capture values as part of a closure.
zshift
joined 2 years ago
@varsock rust has very good code generation for C (and sometimes C++ as well) headers via bindgen
(https://github.com/rust-lang/rust-bindgen). This allows you to potentially make minimal changes to the code without have to refactor to use a new protocol on the legacy side, and has faster performance (benchmark to confirm), since there’s no serialization/deserialization step.
@Jenztsch @FizzyOrange
Eg