Related problem
I don't really know how to describe it but sometimes we keep global constants as functions returning the value. It would be nice to have match supporting it instead of having the else if ladder.
Describe the solution you'd like
The function return values should be evaluated

This match statement should match log CRITICAL_LEVEL_PREFIX, now it evaluates the default _ option
Describe alternatives you've considered
if-else works just fine but match is sometimes the cleaner way to do something
Additional context and details
No response
Related problem
I don't really know how to describe it but sometimes we keep global constants as functions returning the value. It would be nice to have
matchsupporting it instead of having theelse ifladder.Describe the solution you'd like
The function return values should be evaluated
This
matchstatement should matchlog CRITICAL_LEVEL_PREFIX, now it evaluates the default_optionDescribe alternatives you've considered
if-else works just fine but
matchis sometimes the cleaner way to do somethingAdditional context and details
No response