Skip to content

[PPC0036] Add document about Viral Value Magic#90

Open
leonerd wants to merge 3 commits into
Perl:mainfrom
leonerd:ppc0036
Open

[PPC0036] Add document about Viral Value Magic#90
leonerd wants to merge 3 commits into
Perl:mainfrom
leonerd:ppc0036

Conversation

@leonerd

@leonerd leonerd commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

No description provided.


* When calculating a new value as a result of one *or more* input values that have these annotations attached, the `infect` function on each annotation of each such value is invoked to copy it into the resulting destination. It may be that the result ends up with more than one annotation attached to it.

* When a container variable is `local`ised, magic annotations of this shape are not copied into the new temporary container.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this behavior doesn't match with what i'd have in my head - i'd imagine that unless mutated, a local-ised copy would continue being the same thing.
perhaps our mental models are not aligned - could you spell out specifically why you want this behavior?

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.

2 participants