Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Use method/function signatures with Perl

by gaal (Parson)
on Dec 06, 2004 at 07:09 UTC ( #412594=note: print w/ replies, xml ) Need Help??


in reply to Use method/function signatures with Perl

(I'm on my way to work and haven't had time to read through evertything carefully here, but there's a comment I want to make before I forget:)

    In 'strict' mode, it requires that functions/methods be "typed" according to what ref would return.

Wouldn't it be better to run an isa check instead? This is a mistake I sometimes make, myself.


Comment on Re: Use method/function signatures with Perl
Download Code
Re^2: Use method/function signatures with Perl
by Ovid (Cardinal) on Dec 06, 2004 at 15:39 UTC

    Yes, it would be better. However, I wanted to keep the initial release as simple as possible with the intent of getting feedback and bug reports so I can see where I stand. Right now, CPAN testers shows 8 passes and I have a fair number of tests, so at least the code is working like I expected. It's when someone starts using it in a way I don't expect and it works that I'll feel happy. Later I hope to fix the isa issue.

    Cheers,
    Ovid

    New address of my CGI Course.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://412594]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2015-07-06 03:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (69 votes), past polls