Hello,
I lately had a look at Rust and really liked it in many ways. Rust has really everything I'm missing in Go ;-). There is something about traits I would like to ask I can't see from the manual. Question is whether you define instance variables in traits or abstract variables like Ceylon and Kotlin have them. Abstract traits vars in Kotlin look like this (sample code taken from here: http://blog.jetbrains.com/kotlin/2011/08/multiple-inheritance-part-2-possible-directions):
trait Trait {
val property : Int // abstract
val property : Int // abstract
fun foo() {
print(property)
}
}
print(property)
}
}
class C() : Trait {
override val property : Int = 239
}
override val property : Int = 239
}
Can something like this be done for traits in Rust as well?
Then I would like to ask whether you are planning to have some Rust forum for users. The question I was asking in this mail on rust-dev really doesn't belong into the dev mailing list. So something like a google Rust-users newsgroup would be a good thing to have. I know several people that are interested in Rush. Think it would give Rust a little push if a Rust-user forum would exist.
Regards, Oliver
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
