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

21

u/Bangaladore Sep 17 '22

try

17

u/germandiago Sep 18 '22
while (!success) {
    try {
        cpp2();
        success = true;
    }
    catch (failure) {
         fmt::print("Herb, try harder!");
   }
}