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
Cannot assign to an immutable value #11
Comments
This proof of concept demonstrates the problem.
This appears to be a regression that started with 2018.10. |
Some investigation shows that the problem is basically that before 2018.10, a Pair created like
and
I'm not sure what the justification for this difference in behavior is, but I'm assuming to this point this change is intentional and has a good justification. In any case, this appears to be a feature, not a bug. The test needs to be fixed, not the module. Weirdly, I would have expected the following modification to the
However, it most certainly does not. The following modification does work, though:
I propose to fix this by adding anonymous scalars into the initializers for |
Upon further reflection, I think I want to lean towards the hash treatment. This is an ArrayHash after all. I need to think more about how to make the interface consistent, but not make this unexpected distinction between positional pairs and named pairs. |
This may be a transient error in testing. I didn't notice this one until after I fixed the other initializer test failures. It may have been layered on top of previous failures that I was just ignoring while I had a known stupidity failure in the way I wrote the original tests.
The text was updated successfully, but these errors were encountered: