News for hackers. Stuff that matters.
Re:C++ Core Coroutines Proposal [pdf] by Sharlin on Friday September 21, 2018 @05:10AM (#18038277)
Often the reason is not wanting to introduce new keywords for backwards compatibility reasons. And when keywords are introduced, often they have to be awkward (like `co_await`) to minimize conflicts with existing code. Context-sensitive keywords are one solution but can make parsing even more complicated in places where arbitrary lookahead might be needed.
Re:C++ Core Coroutines Proposal [pdf] by stochastic_monk on Friday September 21, 2018 @08:09AM (#18039073)
That’s also why the sizeof... operator was chosen. It’s an abuse of notation, because it returns a count of elements rather than the sum of sizeof applied to each, but ... and sizeof were already reserved.