-
Notifications
You must be signed in to change notification settings - Fork 77
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
default case matches multiple times for same term in a visit #731
Comments
Because it will also visit for string chars. Do tot see what is going PN:
|
Sorry should be:
This will give:
|
Question: is this really the behavior we want? This seems amazingly expensive, and not terribly consistent (matching each character inside the string would make more sense if we were going to do this, I would think). |
As usual, I have executed this example with the compiler, and I think that gives the behavior we want:
and get:
In the compiler, only top-level string visits match every character. |
I think that makes much more sense, this is what I would expect. |
We should make a separate statement kind for top-level string visits, like |
If I do the following in an otherwise empty module:
and run it I see the following:
Why is default being triggered so many times? I would think it would be triggered at most 4 times, one for each of the 3 strings in the list, and one for the list as a whole.
The text was updated successfully, but these errors were encountered: