Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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
Replies are listed 'Best First'.
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.


    New address of my CGI Course.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2015-10-13 22:11 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (316 votes), past polls