-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add SafeBase Module #29
Conversation
0x0f0f0f
commented
Aug 27, 2024
- add safe base module
- Add SafeBase
- add more tests
@iamed2 would you have a moment to take a look at this? |
src/SafeBase.jl
Outdated
This function can optionally throw if an exception is encountered. | ||
Otherwise, a silent failure is indicated by returning `nothing`. | ||
""" | ||
function safe_eval(m::Module, expr)::Result{Any,EvalError} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What types can this accept? Why such a different implementation here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be Any
.
I can look more this weekend, in the meantime can you make src/SafeBase.jl more BlueStyle? And add signatures to the new method docstrings that don't contain them. |
@iamed2 addressed the comments. Thanks! |
Can I go ahead and merge? @iamed2 |