3 ms·
It’s way more clear and robust than a one liner if. A for loop also doesn’t match what’s being executed. It’s s actually a do/while loop
by jbverschoor 4y ago
It’s way more clear and robust than a one liner if.
A for loop also doesn’t match what’s being executed. It’s s actually a do/while loop
- forgotmypw17 4y agoOne-liner if statements is another pattern I stay away from as much as possible...
- jbverschoor 4y agoI usually use it to do some pre conditional checks, or to return early
- forgotmypw17 4y agoThat's fair. I still use 3-liners for that.