S
Samuel R. Neff
Is there any downside to using the Memento pattern to store the
current state of an object instead of using private fields for
internal state and a memento just for some bookmarked state?
Seems like the upside is less code and easier state
management/cloning. Perhaps there's a slight performance difference
with accessing the memento's fields instead of local private fields,
but that should be insignificant.
Thanks,
Sam
B-Line is now hiring one Washington D.C. area VB.NET
developer for WinForms + WebServices position.
Seaking mid to senior level developer. For
information or to apply e-mail resume to
sam_blinex_com.
current state of an object instead of using private fields for
internal state and a memento just for some bookmarked state?
Seems like the upside is less code and easier state
management/cloning. Perhaps there's a slight performance difference
with accessing the memento's fields instead of local private fields,
but that should be insignificant.
Thanks,
Sam
B-Line is now hiring one Washington D.C. area VB.NET
developer for WinForms + WebServices position.
Seaking mid to senior level developer. For
information or to apply e-mail resume to
sam_blinex_com.