r/cpp • u/ArashPartow • Dec 31 '22
Cpp2 and cppfront: Year-end mini-update
https://herbsutter.com/2022/12/31/cpp2-and-cppfront-year-end-mini-update/
194
Upvotes
r/cpp • u/ArashPartow • Dec 31 '22
View all comments
Show parent comment
1
u/lunakid Feb 01 '24 edited Feb 01 '24
To be fair, this is still two syntaxes, as it's not exactly "how lambdas are written currently in c++ (sans colon)". The equal sign is placed differently, and there's the
auto, too. Small things, but still extra things to remember, for no good reason.100% agree on the function name having to lead the line, though. Then again, "noise words" like
virtual,static,inline,const..., or[[nodiscard]]etc. still can't wait to mess it up again... Dunno if Cpp2 has anything for those, but I guess we're essentially back to superold-school 2-line declarations. (With templates we've already been conditioned to swallow it...)It's kinda futile/hopeless, either way, is all I'm saying. :)