3 ms·
> frontend to C++ that cleans up the syntax, has much stricter rules around UB, and can rely on C++ as its unsafe counterpart You're looking for Herb Sutter's
by coderjames 4y ago
> frontend to C++ that cleans up the syntax, has much stricter rules around UB, and can rely on C++ as its unsafe counterpart
You're looking for Herb Sutter's CppFront: https://github.com/hsutter/cppfront https://github.com/hsutter/cppfront
As Cfront was to C, Cppfront is to C++.
- i-use-nixos-btw 4y agoSyntactically, I find cppfront gorgeous. However, I’d like to have seen more emphasis on safety by design, rather than safety by excluding things. I think it’s definitely easier to get it in at this stage of cppfront’s development than it would be of Carbon, but that’s because the implementation is incredibly simple and the technical debt is low. I have high hopes for cppfront, though. I hope it grows into a full frontend rather than a preprocessing step.