Announcing Rust 1.20
blog.rust-lang.org
Announcing Rust 1.20
1–10 of 277 posts
Re: Announcing Rust 1.20
#2"Associated constants" = limited version of class variables
Rust keeps approaching C++'s feature set..
I am amazed that the above wasn't in Rust to begin with, though. Can't think of any other languages which has classes but no class methods/variables.
Re: Announcing Rust 1.20
#3Re: Announcing Rust 1.20
#4"Associated functions" = class methods "Associated constants" = limited version of class variables Rust keeps approaching C++'s feature set.. I am amazed that the above wasn't in Rust to begin with, though. Can't think of any other languages which has classes but no class methods/variables.
Re: Announcing Rust 1.20
#5"Associated functions" = class methods "Associated constants" = limited version of class variables Rust keeps approaching C++'s feature set.. I am amazed that the above wasn't in Rust to begin with, though. Can't think of any other languages which has classes but no class methods/variables.
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.
Re: Announcing Rust 1.20
#6"Associated functions" = class methods "Associated constants" = limited version of class variables Rust keeps approaching C++'s feature set.. I am amazed that the above wasn't in Rust to begin with, though. Can't think of any other languages which has classes but no class methods/variables.
Re: Announcing Rust 1.20
#7"Associated functions" = class methods "Associated constants" = limited version of class variables Rust keeps approaching C++'s feature set.. I am amazed that the above wasn't in Rust to begin with, though. Can't think of any other languages which has classes but no class methods/variables.
Part of the difficulty here is nailing down what "class" even means, exactly. Rust doesn't fit into either of the three major schools of OOP, which I personally nickname the "smalltalk school", the "java school", or the "javascript school".
Re: Announcing Rust 1.20
#8"Associated functions" = class methods "Associated constants" = limited version of class variables Rust keeps approaching C++'s feature set.. I am amazed that the above wasn't in Rust to begin with, though. Can't think of any other languages which has classes but no class methods/variables.
Now you have me wondering what use a class is without methods or variables. It's just a namespace?
Re: Announcing Rust 1.20
#9"Associated functions" = class methods "Associated constants" = limited version of class variables Rust keeps approaching C++'s feature set.. I am amazed that the above wasn't in Rust to begin with, though. Can't think of any other languages which has classes but no class methods/variables.
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.
Guess I didn't go far enough :)
Re: Announcing Rust 1.20
#10"Associated functions" = class methods "Associated constants" = limited version of class variables Rust keeps approaching C++'s feature set.. I am amazed that the above wasn't in Rust to begin with, though. Can't think of any other languages which has classes but no class methods/variables.