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

Add tryelse() #1196

Open
LadyCailin opened this issue May 27, 2020 · 0 comments
Open

Add tryelse() #1196

LadyCailin opened this issue May 27, 2020 · 0 comments
Labels
feature request New functionality that doesn't exist yet good first issue Wanna take a stab at contributing? Try this one! Should be easier than most.

Comments

@LadyCailin
Copy link
Member

LadyCailin commented May 27, 2020

Add a function tryelse, which accepts two statement, trying the first one, and returning it if successful, otherwise, returning the else.

string @a = tryelse(functionThatThrows(), 'default');

If scream-errors is true, the exception will still be logged.

@LadyCailin LadyCailin added feature request New functionality that doesn't exist yet good first issue Wanna take a stab at contributing? Try this one! Should be easier than most. labels May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New functionality that doesn't exist yet good first issue Wanna take a stab at contributing? Try this one! Should be easier than most.
Projects
None yet
Development

No branches or pull requests

1 participant