|
|
|
|
|
by brundolf
1894 days ago
|
|
You're right that both technically qualify as early-return, which is why I qualified my original statement with "if you don't put the rest of the function in an else clause". In practice, in C-like languages, I tend to see the "else-less" version which is why I brought it up |
|
1: https://youtu.be/SFv8Wm2HdNM