How not_null can improve your code?—Bartlomiej Filipek

Save to:
Instapaper Pocket Readability

Let’s investigate what "not_null" (from the Core Guidelines/Guideline Support Library) can do for us.

How not_null can improve your code?

by Bartlomiej Filipek

From the article:

I believe "not_null" can help in many places. It won’t do the magic on its own, but at least it forces us to rethink the design. Functions might become smaller (as they won’t have to check for nulls), but on the other hand, the caller might require being updated.

Add a Comment

You must sign in or register to add a comment.

Comments (0)

There are currently no comments on this entry.