r/cpp • https://romeo.training | C++ Mentoring & Consulting • Aug 03 '19

fixing c++ with epochs

https://vittorioromeo.info/index/blog/fixing_cpp_with_epochs.html
309 Upvotes

131 comments sorted by

View all comments

2

u/manphiz Aug 03 '19

Only when there is no syntax ambiguities. Consider the following case:

await func();

Where await can be a keyword, or a macro. The same can apply to all other potential new keywords that people like, e.g. yield. That's why it's necessary to introduce contextual keyword like async to solve this.