I rag on “if err != nil { return err }”, but I can sort of understand where people who prefer it to try/exceptions are coming from, even though I completely disagree. But I can’t even begin to understand people who prefer hand-written state machines to async/await.
-
-
Match expressions in Rust compile pretty naively.
-
This is a greater way to put it.
End of conversation
New conversation -
-
-
Depends https://users.rust-lang.org/t/why-is-a-lookup-table-faster-than-a-match-expression/24233/5 … Branch prediction on async state may not be helpful. But, in future code, I can write a conditional around mem::replace that benefits from BP. Ultimately, since future poll is called in response to IO, I often have limited branching code.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.