You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This syntactic sugar would allow to use Uniform::from(1..=10) instead of Uniform::new_inclusive(1, 10), but requires Rust 1.26. I don't think it is worth it to add a feature or raise the minimum required Rust version, but at some point we might want to implement it.
This is at least the third incentive I've come across to require Rust 1.26, although we don't need it.
I think we should have a release with all the new features possible without bumping the minimal version. The idea is to make adoption of the new API more likely for crates caring about this.
That would work, however this does not actually require nightly, just Rust 1.26, so it would be a bit weird. Maybe better than nothing? We could also introduce a stable feature flag, which could be used for SIMD as well.
Unfortunately, we don't have conditional compilation for Rust versions AFAIK.
I would prefer to have a rust_1_26 feature flag which gets deprecated once the minimum is or is greater than this version. But it is probably unnecessary.
I would prefer to have a rust_1_26 feature flag which gets deprecated once the minimum is or is greater than this version. But it is probably unnecessary.
We could reuse this for SIMD though, which I think would make it worthwhile.
Activity
dhardy commentedon Jul 16, 2018
Good idea.
This is at least the third incentive I've come across to require Rust 1.26, although we don't need it.
vks commentedon Jul 16, 2018
I think we should have a release with all the new features possible without bumping the minimal version. The idea is to make adoption of the new API more likely for crates caring about this.
pitdicker commentedon Jul 20, 2018
We already have the
nightlyfeature flag, maybe it makes sense to implement it under that (for now)?vks commentedon Jul 20, 2018
That would work, however this does not actually require nightly, just Rust 1.26, so it would be a bit weird. Maybe better than nothing? We could also introduce a
stablefeature flag, which could be used for SIMD as well.Unfortunately, we don't have conditional compilation for Rust versions AFAIK.
sicking commentedon Jul 21, 2018
You still can't access
.startand.endother than on nightly.However as of Rust 1.27 you can use
.start()and.end().dhardy commentedon Jul 23, 2018
I would prefer to have a
rust_1_26feature flag which gets deprecated once the minimum is or is greater than this version. But it is probably unnecessary.vks commentedon Jul 23, 2018
We could reuse this for SIMD though, which I think would make it worthwhile.
Implement `From<RangeInclusive>` for `Uniform`
Implement `From<RangeInclusive>` for `Uniform`
Implement `From<RangeInclusive>` for `Uniform`