The null object pattern is a design pattern used to handle the case when an object is null or undefined. The basic idea behind the pattern is to create a null object that has the same interface as the original object. This avoids the need to check for null objects in the code and simplifies the design.
Table of contents
How to solve the above try/catch problem?Why Go doesn’t have null object pattern?2 Comments
Sort: