6 ms·
IMO it is a syntax thing. If you need to use a special keyword (eg. func vs async func) then it is colored. If it is a semantics thing (eg. parameters) is is no
by eikenberry 10d ago
IMO it is a syntax thing. If you need to use a special keyword (eg. func vs async func) then it is colored. If it is a semantics thing (eg. parameters) is is not colored.
- Buttons840 10d agoI'm not familiar with how Rust's async works. What if Rust used the function argument approach, how would that work? Would people pass around a reference to an async executor as arguments (or similar)?
- eikenberry 9d agoMaybe.. something like how Zig works where it passes the I/O object around that encapsulates the required concurrency around the bottlenecks?