Skip to content

Replacing Exceptions (where relevant)#1

Open
arnavgautam wants to merge 20 commits into
masterfrom
agautam/custom-additions
Open

Replacing Exceptions (where relevant)#1
arnavgautam wants to merge 20 commits into
masterfrom
agautam/custom-additions

Conversation

@arnavgautam
Copy link
Copy Markdown

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