Can you share why would this be more readable/maintainable? I'm worried about you saying that this is "more readable and maintainable" without giving quality arguments about why that's true, that may let people believe that this is a must always.
I just went into a discussion about this topic, and some people argue that:
This is an abuse/overuse of a language feature or structure which involves more concepts and more time on your brain in order to understand what is happening when you read it.
I also believe that this enlarge possible problems in devs minds like "Primitive types obsession" and "Declarative Dilussion", check:
Can you share why would this be more readable/maintainable? I'm worried about you saying that this is "more readable and maintainable" without giving quality arguments about why that's true, that may let people believe that this is a must always.
I just went into a discussion about this topic, and some people argue that:
Is better than a simple if like:
This is an abuse/overuse of a language feature or structure which involves more concepts and more time on your brain in order to understand what is happening when you read it.
I also believe that this enlarge possible problems in devs minds like "Primitive types obsession" and "Declarative Dilussion", check:
WDYT?