3 ms·
What is the overhead of maintaining a null object? In most cases it can be a more or less global reference to an object without significant data and the cost is
by HelloNurse 5y ago
What is the overhead of maintaining a null object? In most cases it can be a more or less global reference to an object without significant data and the cost is simply writing a "null" implementation of appropriate interfaces (which could already exist for free, for example empty strings).
What programming language and what kind of objects are you having trouble with?
- breckenedge 5y agoThanks for the response. It’s a Ruby app. It’s a Hash object where one of the keys might contain nil but more methods are called on it.