Better HN
topnewbestaskshowjobs
Log inSign up

throwaway23342

8 karma · joined Jun 3, 2022 (4y ago) · 2 submissions

Submissions

comment 4y ago · link · parent

I find it readable, but I do sympathize. I would have like to have seen it look more like an ML language such as OCaml or F#.

comment 4y ago · link · parent

Async rust isn't pretty.

If you are using async rust, and want to borrow data, use an Arc<T>.

In fact, if you ever use tokio::spawn, you will have to use Arc<T> anyway because it requires 'static lifetime.