[perl6/specs] 65be12: Add a note about list operator flattening.

2015-06-24 Thread GitHub
Branch: refs/heads/master Home: https://github.com/perl6/specs Commit: 65be12770be696034dd41a363ba3804ea9beab4a https://github.com/perl6/specs/commit/65be12770be696034dd41a363ba3804ea9beab4a Author: pmichaud Date: 2015-06-23 (Tue, 23 Jun 2015) Changed paths: M S07-glr-d

[perl6/specs] 64b65b: Revise note about list operator flattening.

2015-06-24 Thread GitHub
Branch: refs/heads/master Home: https://github.com/perl6/specs Commit: 64b65ba84f83dba7843d4c29fadb7ebcee16ce89 https://github.com/perl6/specs/commit/64b65ba84f83dba7843d4c29fadb7ebcee16ce89 Author: pmichaud Date: 2015-06-23 (Tue, 23 Jun 2015) Changed paths: M S07-glr-d

[perl6/specs] a964d4: Fix typo

2015-06-24 Thread GitHub
Branch: refs/heads/master Home: https://github.com/perl6/specs Commit: a964d4bd6aa84919a21e0d5c160968e8c31279ab https://github.com/perl6/specs/commit/a964d4bd6aa84919a21e0d5c160968e8c31279ab Author: Rob Hoelz Date: 2015-06-23 (Tue, 23 Jun 2015) Changed paths: M S32-sett

[perl6/specs] e337b9: Propose Str.substr(Range)

2015-06-24 Thread GitHub
Branch: refs/heads/substr-range Home: https://github.com/perl6/specs Commit: e337b938b442a6f5a3070081180972b9f9f01d1e https://github.com/perl6/specs/commit/e337b938b442a6f5a3070081180972b9f9f01d1e Author: Rob Hoelz Date: 2015-06-24 (Wed, 24 Jun 2015) Changed paths: M S3

[perl6/specs] 2b0a47: Fix typos

2015-06-24 Thread GitHub
Branch: refs/heads/master Home: https://github.com/perl6/specs Commit: 2b0a478b42a0cd18b635e998415c0bd56300e54c https://github.com/perl6/specs/commit/2b0a478b42a0cd18b635e998415c0bd56300e54c Author: Rob Hoelz Date: 2015-06-23 (Tue, 23 Jun 2015) Changed paths: M S32-sett

Re: Types for Perl 6: request for comments

2015-06-24 Thread yary
I'm reading it a bit at a time on lunch break, thanks for sending it along, it's educational. My comments here are all about the example on the top of page 5, starting with the minutest. First a typo, it says "subC" where it should say "sumC" multi sub sumB is ambiguous, due to your use of ";;" t

Anonymous multi-subs

2015-06-24 Thread yary
Now that I've thought about it for 90 seconds (not fully-formed idea), if one were to have an anonymous multi-sub, it ought to be constructed from a list of *signature*, *body *pairs. And/or, any non-finalized sub could have a method to add another *signature, body* to its dispatch list. apologie

Re: Anonymous multi-subs

2015-06-24 Thread Jon Lang
On Wednesday, June 24, 2015, yary wrote: > Now that I've thought about it for 90 seconds (not fully-formed idea), if > one were to have an anonymous multi-sub, it ought to be constructed from a > list of *signature*, *body *pairs. > > And/or, any non-finalized sub could have a method to add anoth

Re: Anonymous multi-subs

2015-06-24 Thread Brent Laabs
I'll just note that you can fake anon multi subs with lexical subs like this: my $sub = do { proto foo (|) { * } multi foo (Int $x) { $x + 1 } multi foo (Str $y) { $y ~ 'a' } &foo; } say $sub("hello"); The sub there is still named "foo" as attested by $sub.name, but isn't availa