Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mutation [foo][^foo] #592

Open
backus opened this issue May 23, 2016 · 3 comments
Open

Add mutation [foo][^foo] #592

backus opened this issue May 23, 2016 · 3 comments

Comments

@backus
Copy link
Contributor

backus commented May 23, 2016

No description provided.

@backus backus changed the title Add mutation from [foo][^foo] Add mutation [foo][^foo] May 23, 2016
@mbj
Copy link
Owner

mbj commented May 23, 2016

This makes me think about adding: /foo/ to /\Afoo/, /foo\z and /\Afoo\z/ not because of semantic but syntax similarity.

On the original proposal:

[^foo] is the strict inverse of [foo] so there is no overlapping input that satisfies both, as this is a "total" reduction for the original input, I consider it not a good mutation. As there will never be a test alive?

@backus
Copy link
Contributor Author

backus commented May 24, 2016

[^foo] is the strict inverse of [foo] so there is no overlapping input that satisfies both, as this is a "total" reduction for the original input, I consider it not a good mutation.

Interesting. So do you also not like mutation from \w to \W or is that different?

@dgollahon
Copy link
Sponsor Collaborator

So do you also not like mutation from \w to \W or is that different?

@mbj I'm also curious about what you currently think about this. It seems like this might be useful in some cases but it might be covered similarly well by removing the entire character group or flipping case for each literal, etc. Happy to implement or modify.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants