4 ms·
I love Rust, but I kind of believe in the conspiracy that comptime code features are less loved by the Rust language maintainers because they increase compile t
by selfmodruntime 4y ago
I love Rust, but I kind of believe in the conspiracy that comptime code features are less loved by the Rust language maintainers because they increase compile time even more.
- Ar-Curunir 4y agoThat directly contradicts in-progress efforts to make `const` better. Things like `const trait`, `const Allocators`, etc are all in progress.
- dist1ll 4y agoSome const features seem like big anti-patterns though. One example is the unstable feature `generic_const_exprs` which I think is a bit short-sighted.
- chc 4y agoWhat seems short-sighted about that to you? I'm not super familiar, but it seems like something you'd want if you're using const generics.
- andrewflnr 4y ago"In progress" does not (by itself anyway) contradict "less-loved". Something can be in progress but making slower progress than it would if people were really excited about it.
- estebank 4y agoThis isn't the case, it's just that the approach to bring comp time evaluation to Rust is difficult because we're trying to side step potential back compat or ambiguous restrictions that we otherwise would have. Rust follows the "when it's ready" delivery approach wich means that some eagerly awaited features take much longer than us, as users, would want.
- satvikpendem 4y agoWhich I appreciate. I don't want Rust turning into another C++ in 20 years.