[Solar-talk] Quick thoughts on new factory() method instantiation
Rodrigo Moraes
rodrigo.moraes at gmail.com
Wed Dec 13 05:10:17 PST 2006
On 12/11/06, Paul M Jones wrote:
> Of the remaining two, I like solarFactory() better. The property
> idea seems a bit too loose, even for me.
+1 solarFactory().
A method named factory() can exist in other external libraries, as
happened to Travis. However Solar::factory() would not be used for
external libs unless the constructor follow Solar's constructors, and
then, for classes made to work with Solar, perhaps it would be ok to
just avoid methods named factory(). But I like the idea of prefixing
with 'solar' because it tells that it is a method that Solar will try
to evoque, and would avoid conflicts with non-Solar classes.
rodrigo
More information about the solar-talk
mailing list