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

Replacing Exceptions (where relevant) #1

Open
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

arnavgautam
Copy link

This pull request proposes to replace certain exceptions previously thrown, with a new system. This would instead write error messages to a globally-accessible struct, which could then be read by code that calls this library. This change also requires adding checks throughout the codebase whether or not the error struct has been written to, with new behavior if it has. The approach was essentially to replicate the behavior of exceptions, by just returning dummy values up the stack until we reach a point at which the error can be dealt with in a way that is semantically sound. However, this way doesn't require we compile to handle exceptions, which gives us a pretty sizeable speedup.

@arnavgautam arnavgautam self-assigned this Jan 9, 2019
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