Coming from JS and want to learn Rust? Some hot tips: - A lot of Rust feels is OOP. If you get a feel for OOP JS first, Rust will be easier. - Don't bother with async stuff for now. It's not ready. - There's less syntax to learn than you'd expect. - Rust Book is excellent.
niceeeee. I thought impl trait made it to stable tho! :D https://github.com/rust-lang/rust/pull/49255#issuecomment-375368749 … Curious about the specialization stuff; been hearing about it lately, and don't have a good grip on it yet. Sounds really interesting tho!
-
-
My use case for specialisation is that I can super-optimise equality checking for persistent containers of values that implement Eq, but not just PartialEq, and I need specialisation to be able to provide implementations for both cases.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
We want specialization to optimize certain things. For instance to_string on a String returns the String. It used to not be the case and went through fmt to make a new String! We've just not found a way that was sound yet so that we can let everyone outside the compiler use it.
-
But that might also change by end of 2018 as we might have a way to make specialization sound, at least a very minimal version of it.
- 1 more reply
New conversation -
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.
