> On Wed, 14 Jul 2004 15:33:21 -0400, Bob Showalter wrote
> > 
> > Except that those are different in much more that just "documentation".
> > Don't go that way...
> 
> I still don't understand the reasoning for this - how could adding
more to the
> sub signature be worse than not having any?  Is there a URL that
describes why
> prototypes are bad?  and if they're bad, why are they in the
implementation at
> all, why don't they generate warnings and why are they not documented
to be
> deprecated?
> 

perldoc perlsub contains the documentation for prototypes.  To me they
are inflexible and involve too much work when changing the args, maybe I
am naive, but that is probably my lack of background in C/Java.  The
return value typing issue is much bigger for me, the beauty of Perl is
its contexts, and varying return value types at runtime.  Late typing? 
Can't remember what it is called....

http://danconia.org


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to