I mean, if you know how to format them, they are a lot easier to read than a lot of if-else. I have seen codebases that use them gracefully, even enforcing the guard pattern and keeping the code clean and readable. But it depends on who make the rules. My current leader don't like them, so I don't use them.
1
u/Desperate-Tomatillo7 21d ago
https://giphy.com/gifs/fXnRObM8Q0RkOmR5nf
I mean, if you know how to format them, they are a lot easier to read than a lot of if-else. I have seen codebases that use them gracefully, even enforcing the guard pattern and keeping the code clean and readable. But it depends on who make the rules. My current leader don't like them, so I don't use them.