⭐ in reply to How do I make deterministic constructors?
The short answer is: you can't. Perl doesn't do multiple multiple dispatch.
The long answer is: Use the Class::Multimethods module. As is the case with many of the things that "Perl doesn't do", Damian Conway has made Perl do it.
|
---|
In Section
Seekers of Perl Wisdom