I would like to see in rust readonly struct, variables and default values de like in c#. It should look something like this.
readonly struct Data {
number: 'init f32,
text: 'default &str = "world",
date: 'default datetime = datetime::current(),
}
And also use to declare constants of a function will arguments in the form of constants or values, the result of which will be known at compile time. I would also like to have groups of variables or constants, this will make life easer and reduce the digging in the the vars. It should look something like this.
group main_vars {
group strings {
string1: &str,
string2: &str,
string3: &str,
}
group ints {
int1: i32,
int2: i32,
}
group etc {
string: str,
int: i32,
}
}
still wouldn't mid adding the ability of writing traits in struct. for example so.
struct Name {
trait {
//functions
}
impl Trait {
//implement
}
}