Return early and clearly--Arne Mertz

How to return well:

Return early and clearly

by Arne Mertz

From the article:

There are different guidelines out there about where and how many return statements to use in a function, e.g. return only once at the end of the function or return early and often. Which one makes for the most readable code?

Add a Comment

Comments are closed.

Comments (0)

There are currently no comments on this entry.