Hi,
Imagine a strategy whereby you might want parsers for several formats of config file, say INI, XML and YAML for example. Parsing these will result in an instance of a common class say 'Config_Data'.
My thoughts are that as the parser has a very simple mandate, and no state that I can see, it is best implemented as a static class, so you could employ the following:
Parser_Ini::parse(...);
Parser_Xml::parse(...);
...
This doesn't feel entirely correct to me as of course these static classes can't implement an interface etc, but they would seem to make good sense.
I would be interested to know your thoughts on the matter :).
Thanks, James