> Le 12 janv. 2018 à 06:42, Brent Royal-Gordon via swift-evolution 
> <swift-evolution@swift.org> a écrit :
> Basically, having `ValueEnumerable` be a formal protocol means we can extend 
> this small automatic behavior into larger automatic behaviors. I can imagine, 
> for instance, building a fuzzer which, given a list of `WritableKeyPath`s 
> whose types are all `ValueEnumerable`, automatically generates random 
> instances of a type and feeds them into a test function. If we get read-write 
> reflection, we might be able to do this automatically and recursively. That'd 
> be pretty cool.

Yes! This is an argument for ValueEnumerable (vs. CaseEnumerable), ins't it ?


swift-evolution mailing list

Reply via email to