Just read a bunch of posts on traits/trait objects in Rust and it is not clear when to use static vs dynamic dispatch. Anyone have a one sentence tl;dr on when to use which?
@rustlang
-
-
Also though I understand this being true, it feels like simply a failure of Rustc. With incremental builds, I don’t think this should be the case anymore
-
I wouldn't frame it as a failure. Compilation times have gotten much faster sonce I started writing Rust almost six years ago. There is still a long way to go of course, but it has been getting better.
- 2 more replies
New conversation -
-
-
I was recalling a post on maybe Reddit or hn where you mentioned you had noticed some benefits of trait objects. The underlying recommendation comes from my experience on an "Enterprise" codebase.
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.