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

Need robust unreachable expression detection. #60

Open
otac0n opened this issue Oct 12, 2014 · 0 comments
Open

Need robust unreachable expression detection. #60

otac0n opened this issue Oct 12, 2014 · 0 comments

Comments

@otac0n
Copy link
Owner

otac0n commented Oct 12, 2014

Here are just a few I can come up with:

a = #ERROR{ "any" } 'unreachable'
b = [a-z]<0, 1, 'unreachable'>
c = '' / 'unreachable'
d = &!!&!!&&&!&!&'' 'unreachable'
e = ""<100> #ERROR{ "any" } / 'unreachable'

Note that it is impossible to solve this problem completely:

a = !{ true } 'unreachable'

So, we are only trying to detect provably unreachable expressions.

Detecting something like these would eventually be nice, but will not be included in the first version of the feature:

a = !'a' 'a' 'unreachable'
b = ![a-z] 'a' 'unreachable'
@otac0n otac0n self-assigned this Oct 12, 2014
@otac0n otac0n modified the milestones: 4.0, 3.2 Oct 12, 2014
@otac0n otac0n removed their assignment Sep 4, 2015
@otac0n otac0n modified the milestones: 3.2, Unscheduled Non-breaking Change Jul 26, 2016
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

1 participant