[swift-evolution] [Review] SE-0194: Derived Collection of Enum Cases

Gwendal Roué gwendal.roue at gmail.com
Fri Jan 12 00:41:12 CST 2018

> Le 12 janv. 2018 à 06:42, Brent Royal-Gordon via swift-evolution <swift-evolution at 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 ?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20180112/f42f8d34/attachment.html>

More information about the swift-evolution mailing list