Re:Carbon Language: An experimental successor to C++
by zozbot234 on Wednesday July 20, 2022 @04:24AM
(#32162937)
And that's still not 100%. The Carbon devs are very clear that there will be some C++ code that Carbon is unable to interoperate with.
Re:Carbon Language: An experimental successor to C++
by gulbanana on Wednesday July 20, 2022 @08:46AM
(#32164964)
Like the standard library - they don't plan to support exceptions.
Re:Carbon Language: An experimental successor to C++
by rkangel on Monday July 25, 2022 @11:04AM
(#32225358)
Oh, that's excellent and interesting news - not a fan of exceptions. I'm not sure how that's going to work with interop when libraries rely on exceptions though. Where did you hear about this? I'd love to know more.
Re:Carbon Language: An experimental successor to C++
by google234123 on Friday July 29, 2022 @11:59PM
(#32284167)
You will probably have to write more c++ code to handle those exceptions inbetween
No, it's clearly not a "fuzzy" notion of interop even in the most uncharitable interpretation. Your assertion is mis-information.
"Seamless, bidirectional interoperability with C++, such that a library anywhere in an existing C++ stack can adopt Carbon without porting the rest."
Support mixing Carbon and C++ toolchains
Compatibility with the C++ memory model
Minimize bridge code
Unsurprising mappings between C++ and Carbon types
Allow C++ bridge code in Carbon files
Carbon inheritance from C++ types
Support use of advanced C++ features
Support basic C interoperability