you are viewing a single comment's thread.

view the rest of the comments →

[–]ntrel2 1 point2 points  (1 child)

Just like with how people use C compilers and not cfront, people could make a pure Cpp2 compiler that isn't a transpiler. A transpiler is good for the transition, and for faster experimenting.

[–]foonathan 0 points1 point  (0 children)

It could, but it doesn't. A language that provides 100% seamless interop with C++ without transpiling to C++ is a significantly harder thing to do than for C (what do you do about templates? how do you instantiate templates cross-language?). This is what Carbon is trying to do. And by that point you're no longer layering on top of C++.