in reply to Re: Re (tilly) 2: Paradigm Shift - Dual Use Constructors
in thread Paradigm Shift - Don't use strict
I fail to see how someone would mark you down on this, because you wouldn't have the traditional my $class = ref($proto) || $proto, you would have something much more complex wrapped around:
Which would look far more reasonable in a code review, and would almost inevitably have to be documented. So I don't buy your argument.if (ref($proto)) { if (ref($_[0])) { cross polinate } else { mutate } } else { construct new }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re (tilly) 2: Paradigm Shift - Dual Use Constructors
by demerphq (Chancellor) on Feb 20, 2002 at 09:59 UTC |