Null object pattern: Difference between revisions

Content deleted Content added
Changes of wording in sentences.
m unpiped links using script
Line 82:
It can be regarded as a special case of the [[State pattern]] and the [[Strategy pattern]].
 
It is not a pattern from ''[[Design Patterns (book)|Design Patterns]]'', but is mentioned in [[Martin Fowler (software engineer)|Martin Fowler's]] ''Refactoring''<ref>{{cite book
| first = Martin
| last = Fowler
Line 336:
=> nil
</syntaxhighlight>
Attempts to directly [[Monkey patch|monkey-patch]] NilClass instead of providing explicit implementations give more unexpected side effects than benefits.
 
===JavaScript===