in reply to Prototypes allow overloading subs?
Greetings,
Cheers,
alf
You can't have everything: where would you put it?
Mmmhhhh...
Not the java way for sure. If anything, I'd go the python way:
So I can say:def foo(one,two=None,*args,**kwargs) : pass
While perl's way may be too free form sometimes, trying to work around - for instance - C# idea of not allowing default values for arguments is a royal pain in the backend.foo(1) foo(1,2) foo(two=3,one=4,'fubar',three=42)
Cheers,
alf
You can't have everything: where would you put it?
In Section
Meditations