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
Traps candidate? Sinkage of maps #1718
Comments
|
I think adc5f09 doesn't explain why it happens. |
|
In this case, I'm not 100% it's an effect of sinkage. In fact, |
|
@AlexDaniel you caught me writing the explanation above. I really don't know why it happens. I have avoided referring to sink and included a workaround. That's good enough for the trap documentation, at least for me. If you've got a better theory, just let me know... |
|
I have posted this in StackOverflow to clarify what's going on in the "normal" case, which I think it shouldn't work. |
|
The answers on StackOverflow are nice, the current documentation is not. Reopening :) |
|
That's precisely why I've asked that and linked the question... |
This closes Raku#1718 but see my comment.
The answers appeared in [this post in SO](https://stackoverflow.com/questions/50423289/maps-nested-maps-and-sink-context). Closes Raku#1718 again :-)
Just mapping stuff in sink context may make people think it's perfectly fine to do it all the time:
However, if you nest another
Seqinside (e.g. another map), that Seq just becomes an item inside the first Seq and so isn't sunk and the map isn't evaluated:The text was updated successfully, but these errors were encountered: