The story of King Midas is a cautionary tale about adding the `async` keyword to a code base.

@mistersql All time fave reading in this regard: What color is your function?

https://journal.stuffwithstuff.com/2015/02/01/what-color-is-your-function/

What Color is Your Function? – journal.stuffwithstuff.com

@djh @mistersql thanks goodness by now JS has proper `await` and wish Python didn't make it so complicated...
@daaain oh, interesting - what's changed about the JS implementation?
@rgilton it's not super new, but the native support for await is great, you don't need to do anything else than make a function async and then you can avoid then() or callback chaining, try/catch works, etc. Even parallel execution is relatively simple, though not particularly self-explanatory with Promise.all()

@daaain ah, ok, I thought you were saying that it had some kind of solution to the function colouring problem...

(Sounds pretty much identical to the python async situation btw!)

@rgilton in terms of syntax (and function colouring) Python is similar, but you need to worry about choosing and managing the event loop so it's a bit more effort and things that can go wrong