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

Restrict the use of globals in functions #9

Open
mratsim opened this issue Nov 17, 2019 · 0 comments
Open

Restrict the use of globals in functions #9

mratsim opened this issue Nov 17, 2019 · 0 comments
Labels
enhancement :shipit: New feature or request

Comments

@mratsim
Copy link
Owner

mratsim commented Nov 17, 2019

Ideally only the main scheduler functions accesses globals besides the metrics.

While there are plenty of articles with globals considered harmful, the main motivation here is that it makes the library much harder to test.

Scalable fuzzing and property-based testing would require independent, ideally side-effect free components that can be tested independently and in parallel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement :shipit: New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant