Internals of the async/await pattern from first principles
github.com
github.com
// We're using an imaginary programming language here.
Sadly, not answering the 'why'.
Too many times have I gotten some ancient piece of code and cursed the author (sometimes this is even myself) for either not documenting it well or it had a bug or whatnot. "OMG, what were they thinking when they wrote this code?!" I never want to be in the position where someone is cursing me.
// Set x to 42
x += 42
It's a form of banner blindness.By the way, first I felt a strong Pythonic vibe but then I realized that the colons after the statements were missing. I asked ChatGPT and it said Nim. I opened the Nim homepage and realized that Nim also uses the colons. Then it said it is probably just a form of pseudo-code, and it was right.
I reread the whole article to find the clue but never thought to read the commments. Really weird of me.
P.S. Did you see the mistake in the comment before you got here?