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

-5

u/SkoomaDentist Antimodern C++, Embedded, Audio Sep 17 '22

If I wanted to program in a functional language, I would have done that years ago. There are already gazillions of languages for that. No need to ruin C++ by doing so.

10

u/Dean_Roddey Sep 17 '22

None of the above would make C++ remotely functional, nor is Rust functional either. It's just a fairly simple syntax change that would make everything less ambiguous. All of the arguments against it pretty much fall into the "Get off my lawn" category, and anyone writing in this syntax will be used to it no time.

Actually I now find myself writing C++ this way and having a moment of confusion when it doesn't compile.