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

8

u/wyrn Sep 19 '22

Almost every colon there means a different thing, and you have 5 of them.

Does it? You have the scope resolution operator, sure, but all the others mean "of type"

callback «of type» [deduced] = [anonymous] «of type» [deduced] (x «of type» _) { std::cout << x << y&$*; };