> Le 15 sept. 2018 à 15:27, Frank Heckenbach <[email protected]> a écrit : > > Akim Demaille wrote: > >>> I haven't done coroutines, but threads, and of course, everything >>> that's exposed there, I make as const as possible. But that doesn't >>> usually include local variables. >> >> Local variables can be captured by lambdas and passed to coroutines. > > That's why I cautioned my statement with "usually". ;)
Yes! You did! Sorry if I gave the wrong impression. I just meant that it’s certainly more frequent with coroutines than with threads. >> I agree short lived entities should have short names. That's >> actually one benefit (the only one?) to have *.h and *.c files: >> *.h files can expose intelligent meaningful names, while *.c can >> use short names. > > I think we could still do that in a single source file with a little > discipline. I’d love to have real modules in C++ (one day ...). I’m eager to have modules, especially for the speedup.
