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

[Eager Execution] Add short-circuiting for EagerAstChoice #865

Closed
jasmith-hs opened this issue May 23, 2022 · 0 comments
Closed

[Eager Execution] Add short-circuiting for EagerAstChoice #865

jasmith-hs opened this issue May 23, 2022 · 0 comments

Comments

@jasmith-hs
Copy link
Contributor

Add short-circuiting for EagerAstChoice.
Similar to #737 which was done to add short-circuiting for EagerAstBinary, it should also be done for EagerAstChoice.

For example:

deferred ? foo_list.add(foo) : foo_list.add(1 + 1)

should become:

deferred ? foo_list.add('foo val') : foo_list.add(2)

and not:

deferred ? true : true
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

1 participant