EngineHub / EngineHub/CommandHelper
Add tryelse()
Ouverte
feature request
good first issue
- Langage dominant
- Java
- Étoiles
- 128
- Forks
- 70
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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.
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.