Leaky Interoperability
Leaky Interoperability
Posted Sep 17, 2025 1:58 UTC (Wed) by hmanning77 (subscriber, #160992)Parent article: Comparing Rust to Carbon
I'm really curious how Carbon will play out. As mentioned in the talk, C++ already provides the same sort of evolutionary pathway for C code, but in practice I haven't seen that work out. Sometimes people will take the time to wrap the C API in std::unique_ptr's std::vector's, but just as often the use of C types and functions starts leaking out into the C++ code instead. It's fine, in theory, to say that we should just enforce better standards. In practice people have lots to do and little time available. Perhaps Carbon will find ways to discourage temptation to write "just a little C++ to make this work"?