-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Description
Excellent work! I ask that you reconsider "Avoid return where not required."
The return keyword is excellent syntactic sugar for two reasons:
- It gives a very easy way to differentiate between methods whose return values are meaningful and methods whose return values are incidental.
- It's invaluable for reading code where the value returned doesn't come from the last line of the method (because the last line executed is within a conditional of some sort).
Metadata
Metadata
Assignees
Labels
No labels