5 ms·
NB. associated functions have always existed. Also, to be a little snide: "Modules" = modules "Concepts" = traits C++ keeps approaching Rust's feature set!
by dbaupp 9y ago
NB. associated functions have always existed.
Also, to be a little snide:
"Modules" = modules
"Concepts" = traits
C++ keeps approaching Rust's feature set!
It's normal and even expected that languages in a similar space will either draw inspiration from each other or converge on similar solutions.
- steveklabnik 9y agoWhat's funny about this is that I had worded it even less clearly, and it was changed due to feedback: https://github.com/rust-lang/blog.rust-lang.org/pull/192#discussion_r135933426 https://github.com/rust-lang/blog.rust-lang.org/pull/192#dis... Guess I didn't go far enough :)
- EmanueleAina 9y agoMaybe "In previous Rust versions you could already define traits, ..."?
- steveklabnik 9y agoSounds great, thank you! https://github.com/rust-lang/blog.rust-lang.org/commit/e74c57dd8e18b213219623e7ad51f978b85aafdc https://github.com/rust-lang/blog.rust-lang.org/commit/e74c5...