Skip to content

Conversation

odow
Copy link
Member

@odow odow commented May 14, 2021

Closes #1346

The current behavior was ripe for introducing bugs.

In addition, the copy(list) in bridge_optimizer was unnecessary for most bridges, which just return [variable], so removing it avoids an unnecessary copy in those cases, and maintains the same number of copies for the ones modified here.

@odow odow added the Submodule: Bridges About the Bridges submodule label May 14, 2021
@odow odow mentioned this pull request May 14, 2021
10 tasks
@odow odow merged commit adcd75c into master May 14, 2021
@odow odow deleted the od/fix_bridge_mutability branch May 14, 2021 04:10
@blegat blegat added this to the v0.10 milestone May 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Submodule: Bridges About the Bridges submodule
Development

Successfully merging this pull request may close these issues.

Bridges should return get by value, not reference
2 participants