Re: DDD Could Have Saved The Day
| Newsgroups | gmane.comp.programming.domain-driven-design |
|---|---|
| Message-ID | <[email protected]> |
I believe that by including the generation of "null" instance [in factories] to include a valid "null" object you get the best of all worlds - you can create an "empty" object in a valid state, without parameters you may not have yet. This ensures you never get exceptions due to true null objects at the language/compiler level. Overloading or adding an IsNull operator completes the solution. I have used this for a while, do you see any holes on this? or room for improvement? Cheers - wrm