Earlier quoted context omitted.
I think it's actually a good move here, using a real language would invite too many comments getting caught in the weeds along the lines of: "actually the language does X, Y and Z to implement coroutines which this article skips over"
Agreed. My comment was more relating to the fact that comments about 'what' something is, aren't as helpful as answering the 'why', which you just did. =)
Internals of the async/await pattern from first principles
11–17 of 17 posts
Re: Internals of the async/await pattern from first principles
#12Earlier quoted context omitted.
First comment in the first example says: // We're using an imaginary programming language here. Sadly, not answering the 'why'.
I tend to ignore comments in example programs because they look like this: // 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…
Re: Internals of the async/await pattern from first principles
#13Earlier quoted context omitted.
Agreed. My comment was more relating to the fact that comments about 'what' something is, aren't as helpful as answering the 'why', which you just did. =)
Thanks for the feedback! I just extended the comment to touch on the "why" part. :) https://github.com/Dobiasd/articles/commit/53f360259ad8e64ca...
Re: Internals of the async/await pattern from first principles
#14Earlier quoted context omitted.
Thanks for the feedback! I just extended the comment to touch on the "why" part. :) https://github.com/Dobiasd/articles/commit/53f360259ad8e64ca...
Don't leave me hanging, too specific about what?
Re: Internals of the async/await pattern from first principles
#15Earlier quoted context omitted.
Don't leave me hanging, too specific about what?
I'm not sure if you're actually suggesting that the author expound further on the concept of pseudocode, or if this is just humor.
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.
Re: Internals of the async/await pattern from first principles
#16Earlier quoted context omitted.
Thanks for the feedback! I just extended the comment to touch on the "why" part. :) https://github.com/Dobiasd/articles/commit/53f360259ad8e64ca...
Don't leave me hanging, too specific about what?