![]() |
Mutable Classes vs. immutable objects
It is possible to have the convenience of using mutable classes to construct objects gradually, setting properties and execution options beyond the use of constructors, but with the advantage of getting immutable instances at the end of the process. And I'm not talking about the Builder pattern. Incidentally you should not need to construct a class to create an instance of another class...
![]() |
Alle Zeitangaben in WEZ +1. Es ist jetzt 03:01 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz