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

result status should be an enum #210

Open
matbesancon opened this issue Dec 12, 2024 · 0 comments
Open

result status should be an enum #210

matbesancon opened this issue Dec 12, 2024 · 0 comments

Comments

@matbesancon
Copy link
Member

It's a bit cleaner to return an enum value for the termination status, and then have optionally a status string that prints a message, so
result[:status] == TIME_LIMIT_REACHED
result[:status_string] == "time limit reached"

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