News for hackers. Stuff that matters.
Re:Cppfront, Herb Sutter's proposal for a new C++ syntax by duped on Saturday September 17, 2022 @12:05PM (#32878625)
Why add a keyword when you don't need it?
Re:Cppfront, Herb Sutter's proposal for a new C++ syntax by teo_zero on Sunday September 18, 2022 @02:16AM (#32884915)
One answer would be: So that when you hit the ( you know it's a list of parameters and not an expression, even before you spot the ->

I still haven't read enough about syntax 2 to understand if it allows any other use of ( after a : but if yes, a keyword like fn or fun would make the parser much more regular.

Re:Cppfront, Herb Sutter's proposal for a new C++ syntax by bogdanoff_2 on Saturday September 17, 2022 @12:53PM (#32878999)
For easier grepping
Re:Cppfront, Herb Sutter's proposal for a new C++ syntax by duped on Saturday September 17, 2022 @04:13PM (#32881135)
Use an IDE
Re:Cppfront, Herb Sutter's proposal for a new C++ syntax by chlorion on Saturday September 17, 2022 @09:17PM (#32883414)
I'm not sure that any IDEs support cppfront yet!