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

Extend assert sum example and ensure determinism among union types #285

Merged
merged 3 commits into from
Nov 1, 2023

Conversation

nielstron
Copy link
Contributor

@nielstron nielstron commented Nov 1, 2023

This removes all sources of non-determinism by replacing usages of set with OrderedSet.

Note that dictionaries are guaranteed to preserve insertion order upon iteration as of python 3.7+.

@ross-spencer feel free to try and break this fix :)

TODO

  • include other compilations in the testing for deterministic compilation (i.e. parameterized)
  • optionally write pre-commit script that warns of usage of set

@nielstron
Copy link
Contributor Author

again, this should fix #282

@nielstron nielstron merged commit 6738356 into dev Nov 1, 2023
3 checks passed
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.

1 participant