[perl6/specs] d4e09a: add missing comma in json example

2015-03-28 Thread GitHub
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

[perl #124204] [BUG] List.squish(:as(...)) needlessly stringifies things

2015-03-28 Thread via RT
# 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

[perl #124205] [BUG] List.squish does not always return the first list element

2015-03-28 Thread via RT
# 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

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

[perl6/specs] 1b4888: Turn accidentally working example for 'unique' int...

2015-03-28 Thread GitHub
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-

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,

[perl6/specs] 125d6e: S11: include & sigil in explicit import list

2015-03-28 Thread GitHub
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

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

Re: Example module and its use

2015-03-28 Thread Moritz Lenz
-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

Re: Example module and its use

2015-03-28 Thread Tom Browder
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

Fancy sub arg handling: ability to expand error message?

2015-03-28 Thread Tom Browder
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

Re: Example module and its use

2015-03-28 Thread Paul Cochrane
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

Re: Example module and its use

2015-03-28 Thread Tom Browder
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

Re: Example module and its use

2015-03-28 Thread Tom Browder
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: > >