C++ Promise Objects Confusion
Why is it hard to teach and learn C++: "Promise objects are in no way related to std::promise" Each coroutine is associated with • the promise object, manipulated from inside the coroutine. The coroutine submits its result or exception through this object. Promise objects are in no way related to std::promise. • the coroutine handle, manipulated from outside the coroutine. This is a non-owning handle used to resume execution of the coroutine or to destroy the coroutine frame
A programming meme contrasts the confusingly similar names of C++ coroutine promise objects and std::promise. The punchline is that the two concepts are explicitly unrelated, highlighting how difficult C++ terminology can be for learners. EN: A programming meme contrasts the confusingly similar names of C++ coroutine promise objects and std::promise. The punchline is that the two concepts are explicitly unrelated, highlighting how difficult C++ terminology can be for learners.
computer programming text / текст о программированииC++ code / код C++coroutine documentation / документация по корутинамpromise object / объект promisecoroutine handle / дескриптор корутиныblack background / чёрный фонwhite text / белый текстquotation marks / кавычкиtechnical explanation / техническое объяснение
- @ithueti / 13275 2024-06-22
- Type
- image
- Size
- 800×569 · 52.1 KiB
- Mood
- sarcastic, absurd
- Language
- en
- Added