3 ms·
What I find confusing about it is that it does not match the execution order. Perl is my main, and I never use that feature.
by forgotmypw17 4y ago
What I find confusing about it is that it does not match the execution order.
Perl is my main, and I never use that feature.
- jbverschoor 4y agoIt’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.