in reply to Re: Named Subroutine Parameters: Compile-time errors vs. Run-time warnings
in thread Named Subroutine Parameters: Compile-time errors vs. Run-time warnings
Yep. It's just a mistake. A dumb one too, since it was so easy to test. :-(
Chalk it up to wishful thinking on my part. Or maybe just too much blind faith in the compiler: "It's something that would be easy to test at compile-time, ergo it must be tested at compile-time".
Still, at least it's not the worst mistake I made in PBP. ;-)
Damian
PS: I stand by the overall recommendation though. Error messages that point users to the right place are definitely worth the (tiny) overhead of passing named args in a hash.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Named Subroutine Parameters: Compile-time errors vs. Run-time warnings
by shmem (Chancellor) on May 29, 2009 at 18:31 UTC | |
by TheDamian (Vicar) on May 29, 2009 at 23:47 UTC | |
Re^3: Named Subroutine Parameters: Compile-time errors vs. Run-time warnings
by LanX (Saint) on Jun 02, 2009 at 22:45 UTC |
In Section
Seekers of Perl Wisdom