Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

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.

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2018-06-19 01:53 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (111 votes). Check out past polls.