Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
throwaway23342
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
throwaway23342
4y ago
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#.
2.
▲
by
throwaway23342
4y ago
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.