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

Error in documentation of regenerate? #508

Open
ztangent opened this issue May 7, 2023 · 1 comment
Open

Error in documentation of regenerate? #508

ztangent opened this issue May 7, 2023 · 1 comment
Assignees

Comments

@ztangent
Copy link
Member

ztangent commented May 7, 2023

I just tested this on Gen 0.4.5, and this particular claim about choices being retained by regenerate seems to be wrong?

The previous value for `:c` will always be retained.

In particular, if a choice is sampled within an if statement, and the ancestor choice is regenerate s.t. that branch of the if statement no longer gets executed, it seems like regenerate discards that choice, rather than retaining it.

I'm not entirely sure what's meant to be the correct behavior here, but it seems to me that the actual behavior is what we want, and the documented behavior is wrong.

@fsaad
Copy link
Collaborator

fsaad commented May 8, 2023 via email

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

No branches or pull requests

3 participants