Re:Rust vs C Pitfalls
by akiselev on Wednesday December 28, 2016 @02:29AM
(#13269021)
What do you mean by "reasonable?" There are several crates that provide inline C++ macros on both nightly (rustcxx) and stable (rust-cpp). I haven't used the latter but the former works really well (albeit using a gcc specific feature). I usually break out the C++ code into a wrapper (unless its a few lines) to make it more idiomatic Rust but at the end of the day, there aren't that many hoops to jump through.
[ Parent
| on HN ]
There are no comments on this comment yet.