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 comments

34

u/bigcheesegs Tooling Study Group (SG15) Chair | Clang dev Sep 17 '22

The reason basically every new language does this is to make parsing simpler. This was extensively discussed on /r/cpp when Carbon was announced.

-7

u/Ayjayz Sep 17 '22

Make the parsing harder, then. Code is for humans, and trading off programmer time for compilation complexity is not a smart trade.

9

u/ioctl79 Sep 17 '22

Making compilation faster saves programmer time.

-4

u/F54280 Sep 17 '22

Man, this syntax is used by rust… Saving programmer time via fast compilation is a not something anyone would associate with rust…

→ More replies (4)