Branch: refs/heads/master
Home: https://github.com/perl6/specs
Commit: d4e09ac67006c983020966cd011f52b7aeb4f0a0
https://github.com/perl6/specs/commit/d4e09ac67006c983020966cd011f52b7aeb4f0a0
Author: Tobias Leich
Date: 2015-03-28 (Sat, 28 Mar 2015)
Changed paths:
M S22-p
# New Ticket Created by Edwin Steiner
# Please include the string: [perl #124204]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=124204 >
The List.squish method variant with the :&as parameter needlessly turns the
return valu
# New Ticket Created by Edwin Steiner
# Please include the string: [perl #124205]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=124205 >
According to its definition, squish should always return at least the first
list elemen
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
Branch: refs/heads/master
Home: https://github.com/perl6/specs
Commit: 1b4888f618ab157de26db974e9c13f609bb98321
https://github.com/perl6/specs/commit/1b4888f618ab157de26db974e9c13f609bb98321
Author: Edwin Steiner
Date: 2015-03-28 (Sat, 28 Mar 2015)
Changed paths:
M S32-
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,
Branch: refs/heads/master
Home: https://github.com/perl6/specs
Commit: 125d6ea354391b09d8edbc82d6ebce29596d1483
https://github.com/perl6/specs/commit/125d6ea354391b09d8edbc82d6ebce29596d1483
Author: Moritz Lenz
Date: 2015-03-28 (Sat, 28 Mar 2015)
Changed paths:
M S11-mo
-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
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 28.03.2015 11:05, Tom Browder wrote:
> On Sat, Mar 28, 2015 at 5:01 AM, Tom Browder
> wrote:
>> On Fri, Mar 27, 2015 at 8:27 PM, Nathan Brown
>> wrote:
>
> Okay, this works:
>
> use Bar :DEFAULT;
>
> but this does not:
>
> use Bar ;
>
> So i
On Mar 28, 2015 6:23 AM, "Paul Cochrane" wrote:
> BTW: please don't use the shortcut 'v6;': AFAIU it's been deprecated in
> favour of 'use v6;'
> Hope this helps a bit.
It does, thanks!
BTW, I think my fumbling in learning Perl 6 is giving me some ideas for the
Coookbook, at least for p6 newbies
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?
Thanks.
Best,
-Tom
Hi Tom,
> use Bar :DEFAULT;
>
> but this does not:
>
> use Bar ;
>
> So is S11 in error!!
That might not necessarily be the case (however S11 certainly isn't clear
about exactly how to import selected routines while `use`-ing a module).
All subs/methods that are marked with `is export` are
On Sat, Mar 28, 2015 at 5:01 AM, Tom Browder wrote:
> On Fri, Mar 27, 2015 at 8:27 PM, Nathan Brown wrote:
Okay, this works:
use Bar :DEFAULT;
but this does not:
use Bar ;
So is S11 in error!!
Best,
-Tom
On Fri, Mar 27, 2015 at 8:27 PM, Nathan Brown wrote:
> If you put the attribute is export on a sub, then it is part of the :DEFAULT
> and :ALL tagsets. That means you can import them by:
>
> use Bar :DEFAULT;
Okay, I'll try that.
> http://design.perl6.org/S11.html#Dynamic_exportation states:
>
>
14 matches
Mail list logo