Re:Rust 1.34.0
by sanxiyn on Thursday April 11, 2019 @03:39PM
(#19638350)
In my mind const generics and const fn is a completely different feature. Proof: you can use const fn without any const generics.
[ Parent
| on HN ]
Re:Rust 1.34.0
by steveklabnik on Thursday April 11, 2019 @03:42PM
(#19638384)
Sure. They rely on the same internals, which is why they tend to be wrapped together when talking about them as a feature, that’s all I’m saying.
That also doesn’t change that const fn is stable today, so saying “it’s coming this year” muddies the waters a bit. You have to explicitly say “the capabilities of const fn will be expanded”, or you risk the wrong impression.