BigBadE / Raven-Language

An experimental language
MIT License
4 stars 15 forks source link

refactor: replace redundant pattern match with builtin #40

Closed deepsource-autofix[bot] closed 1 year ago

deepsource-autofix[bot] commented 1 year ago

Oftentimes, pattern matching over Result or Option can be simplified using builtin utility functions such as Option::is_some or Result::is_err.