Open backus opened 8 years ago
Mutating to Enumerable#grep is then a clear orthogonal mutation
I wounder if this mutation will ever yield an alive? We already mutate to the absence of grep (not explicitly, but we simply kill send nodes and emit the receiver).
The only case where this mutation will yield an alive is when the already existing "to absence" mutation will yield an alive?
I think you're right here. Might not make sense to make this a mutation. One possible case might be if a test is asserting that the output array is a subset of the input array. Doesn't seem too likely to pop up though so I'm ambivalent about whether this would be useful
Yeah, if the test is that weak this mutation would yield an alive. In doubt lets add it.
Once my service is up we can log which operators yielded alives the last N month, and kill the ones that never yielded an alive.
In doubt lets add it.
@mbj Do you still feel this way? If so, I'm happy to add it.
Likewise, we could do #select
-> #reject
.
In ruby 2.3:
Mutating to
Enumerable#grep
is then a clear orthogonal mutation