Because Rust already have macros that evaluate on compile time to strings I think converting them to ints in a const fn is a very nice feature.
e.g. env!("SOMETHING").parse::<usize>().unwrap()
I opened this Issue as part of: #57563
Interested to hear if other people want this and if it's already exists as part of a different issue/RFC
Because Rust already have macros that evaluate on compile time to strings I think converting them to ints in a
const fnis a very nice feature.e.g.
env!("SOMETHING").parse::<usize>().unwrap()I opened this Issue as part of: #57563
Interested to hear if other people want this and if it's already exists as part of a different issue/RFC