3 ms·
They offer the same functionality (more or less)... Factory objects just feel like overkill - usually they carry no state of their own, so why are they objects?
by viraptor 17y ago
They offer the same functionality (more or less)... Factory objects just feel like overkill - usually they carry no state of their own, so why are they objects? If you could pass around functions, you could just use them instead.
x_factory_proto :: GlobalParams -> InitParams -> X
...
x_factory = x_factory_proto some_params