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

De-containerize Junction values. #3186

Merged
merged 3 commits into from Sep 15, 2019
Merged

De-containerize Junction values. #3186

merged 3 commits into from Sep 15, 2019

Conversation

vrurg
Copy link
Member

@vrurg vrurg commented Sep 15, 2019

Junctions are about values, not containers. Allowing containers inside a junction allows actions at distance in cases like:

my @a = 1,2;
my $j = any @a;
@a[0] = 3;
say 1 ~~ $j; # False

Don't allow = metaop with them.
It breaks reduction.
Junctions are about values, not containers. Allowing containers inside a
junction allows for actions at distance in cases like:

```
my @A = 1,2;
my $j = any @A;
@A[0] = 3;
say 1 ~~ $j; # False
```
@lizmat lizmat merged commit 827aa6e into rakudo:master Sep 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants