-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove 'eval' as much as possible (#150)
* Convert eval-as-try{} to Syntax::Keyword::Try Note that the new Syntax::Keyword::Try dependency increases the minimum supported Perl version to 5.14. * Replace eval'd "require" statements with Module::Runtime This is the easy way out on properly managing $@ in conjunction with eval(). * Localization of $EVAL_ERROR To preserve $@ ($EVAL_ERROR) when no error occurs, in conjunction with 'eval()', we need to jump through hoops... * Change variable name (in code example) In response to review by @jonasbn. * Propagate failure to load ID generators Instead of consuming any errors, but still depending on a positive outcome (like using it like it had been successfully loaded), send the error up the call chain. With tests to verify that the error *is* being propagated. * Throw an error when the argument fails to evaluate in CheckReturn Being unable to evaluate the argument constitutes an execution error. Deal with it that way, instead of acting as if the evaluation had returned 'undef' (which might later be treated as zero).
- Loading branch information
1 parent
a756000
commit f8dbad8
Showing
20 changed files
with
273 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.