quickcheck icon indicating copy to clipboard operation
quickcheck copied to clipboard

Implement Arbitrary for [T: Arbitrary; N]

Open boustrophedon opened this issue 8 years ago • 1 comments

Obviously we can't do full generic N until const generics are implemented. I only wanted it for 3 [f32; 2]s anyway (and settled for six f32s in my function's parameters) and I'd be happy to send a pull request for just [T: Arbitrary; k] for a few small ks if that's good with you.

boustrophedon avatar Nov 03 '17 23:11 boustrophedon

I think historically I've decided to not include these impls because of the compile time hit, with the hope that we could some day provide them with const generics.

I'm not convinced of this position btw. I suppose anyone that tries this should compare compile times.

BurntSushi avatar Nov 05 '17 13:11 BurntSushi