in reply to
Re: Creating 'universal' instances of objects?
in thread Creating 'universal' instances of objects?
Even if current design suggests that the objects will be unique, it is still a good idea to implement such singleton classes with a single managed instance of that class. Class-oriented singleton resources would be more brittle and resistant to refactoring.
In the future he may choose to divide global.conf into server.conf and a number of foo-module.conf, and in that case, an object-backed singleton class easily graduates as more complex structures are needed.
[ e d @ h a l l e y . c c ]