The function coloring is a non starter for me.
I would just rather write JS where everything is async by default.
replies(1):
I would just rather write JS where everything is async by default.
In JS you can do:
async function foo(){...}
function bar(){foo().then(...);}
In python though async and sync code runs in a fundamentally different way as far as I understand it.Anyway I think the main difference is that in Python you control the event loop whereas in JS there's one fixed event loop and you have no choice about it.