4 ms·
"What color is your function" also seems to have leaked out into the general lexicon of discussions about async code.
by andrewflnr 6y ago
"What color is your function" also seems to have leaked out into the general lexicon of discussions about async code.
- hobofan 6y agoIt's sadly being flung around as a bad argument against async in general though, even when it doesn't apply (e.g. in languages that can use an async function from a non-async function).
- layoutIfNeeded 6y agoSuch as?
- hobofan 6y agoAs a recent addition, Zig is "colorblind"[0]. In Rust and some other languages you can also just run an async function in a blocking way, which will defeat some of the benefits of async functions but prevents color sprawl. [0]: https://kristoff.it/blog/zig-colorblind-async-await/ https://kristoff.it/blog/zig-colorblind-async-await/