The stupid question is the question not asked | |
PerlMonks |
Re: Re (tilly) 2: Paradigm Shift - Dual Use Constructorsby frag (Hermit) |
on Nov 14, 2001 at 03:23 UTC ( [id://125168]=note: print w/replies, xml ) | Need Help?? |
The heart of this question is what your model of OO programming is.
Is it? I'd say that for me, this boils down to the following considerations:
In short, for me it's a matter of interface preferences, and how strict/permissive I want to be with that. The philosophy of it all only comes down to the simple question of whether it makes sense for new() to ever behave as clone(). To me it doesn't; this may be because I only really learned OO via Perl (and some Java) so I'm not influenced by Smalltalk or other languages. -- Frag.
In Section
Meditations
|
|