2 ms·
Slightly off-topic: I find async in python awful. The idea and concept is great, but the implementation of coloured functions in python is terrible. It remember
by ktpsns 4y ago
Slightly off-topic: I find async in python awful. The idea and concept is great, but the implementation of coloured functions in python is terrible. It remembers me of the "transition" from lists to iterators (mainly python2 to 3). Coloured function support should drastically improve (i.e. calling an async from non-async) in order to be accessible for newbies.
- johnbcoughlin 4y agoWhat should it do when you call an async function from non-async? Block?
- ktpsns 4y agoI guess there is no easy answer for that. Here is an interesting blog post which resembles closely my opinion: https://www.tedinski.com/2018/11/13/function-coloring.html https://www.tedinski.com/2018/11/13/function-coloring.html Edit: And of course there are alternatives such as Go or Zig: https://kristoff.it/blog/zig-colorblind-async-await/ https://kristoff.it/blog/zig-colorblind-async-await/