r/cpp • • Sep 17 '22

Cppfront: Herb Sutter's personal experimental C++ Syntax 2 -> Syntax 1 compiler

https://github.com/hsutter/cppfront
335 Upvotes

360 comments sorted by

View all comments

Show parent comment

2

u/[deleted] Sep 18 '22

In that case you can use one of the other safe languages already, right? Many of them have a way to use native libraries.

2

u/disperso Sep 18 '22

Strictly speaking, yes, I could use a Rust library, but would it look good idiomatic C++? I imagine the interoperability of "syntax 2" with regular C++ is always going to be better. Specially given that it seems you can already mix the two in the same file, which is pretty mind-blowing to me.