Re: Fancy sub arg handling: ability to expand error message?

2015-03-29 Thread Tom Browder
On Sat, Mar 28, 2015 at 5:43 PM, Tom Browder wrote: > Agree--looks like we need some of Damien Conways wonderful CPAN modules That should be "Damian Conway's" -Tom

Re: Fancy sub arg handling: ability to expand error message?

2015-03-28 Thread The Sidhekin
On Sat, Mar 28, 2015 at 2:53 PM, Moritz Lenz wrote: > On 28.03.2015 12:27, Tom Browder wrote: > > I like the subroutine arg handling in Perl 6. Is there any simple > > way to attach a short error msg in place of or additive to the > > default for, say, a missing arg? > > You can always use multi

Re: Fancy sub arg handling: ability to expand error message?

2015-03-28 Thread Tom Browder
On Mar 28, 2015 8:54 AM, "Moritz Lenz" wrote: > On 28.03.2015 12:27, Tom Browder wrote: > > I like the subroutine arg handling in Perl 6. Is there any simple > > way to attach a short error msg in place of or additive to the > > default for, say, a missing arg? > > You can always use multi subs,

Re: Fancy sub arg handling: ability to expand error message?

2015-03-28 Thread Moritz Lenz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, On 28.03.2015 12:27, Tom Browder wrote: > I like the subroutine arg handling in Perl 6. Is there any simple > way to attach a short error msg in place of or additive to the > default for, say, a missing arg? You can always use multi subs, and