Re: routine declaration line question

2018-10-03 Thread ToddAndMargo
On Wed, Oct 3, 2018 at 7:21 PM ToddAndMargo mailto:toddandma...@zoho.com>> wrote: >> On 04/10/2018 03:07, ToddAndMargo wrote: >>> Hi All, >>> >>> In another thread, Timo wrote me: >>> >>> The "-->" part of the signature is optional. If there isn't

Re: Feedback requested on playlist of 200 Perl 6 videos

2018-10-03 Thread David Green
On 2018-10-03 5:03 pm, Ralph Mellor wrote: I've been building a collection of P6 videos for about 5 years. https://www.youtube.com/playlist?list=PLRuESFRW2Fa77XObvk7-BYVFwobZHdXdK_polymer=true Terrific -- I was going to say this should be listed on https://perl6.org/resources/ but it is indeed

Re: routine declaration line question

2018-10-03 Thread Brad Gilbert
If a routine does not declare it's return type, absolutely anything can be returned. One reason may be that its return value isn't really useful. It could be that the writer didn't think to declare it. (or didn't want to) Another possibility is that the potential returned values are of many

Re: routine declaration line question

2018-10-03 Thread ToddAndMargo
On Wed, Oct 3, 2018 at 7:21 PM ToddAndMargo > wrote: >> On 04/10/2018 03:07, ToddAndMargo wrote: >>> Hi All, >>> >>> In another thread, Timo wrote me: >>> >>> The "-->" part of the signature is optional. If there isn't >>>

Re: routine declaration line question

2018-10-03 Thread ToddAndMargo
On 10/3/18 7:53 PM, Trey Harris wrote: On Wed, Oct 3, 2018 at 22:21 ToddAndMargo > wrote: >> On 04/10/2018 03:07, ToddAndMargo wrote: >>> Hi All, >>> >>> In another thread, Timo wrote me: >>> >>>         The "-->" part of the

Re: bitwise paper?

2018-10-03 Thread ToddAndMargo
On 10/3/18 7:46 PM, Trey Harris wrote: Assuming you are suggesting your examples are showing differences between the languages, in all your examples of differences between Perl 6 and Perl 5 below, you are using the wrong operator or you changed one of the arguments between the Perl 5 and Perl

Re: routine declaration line question

2018-10-03 Thread yary
> And not all subs return things, like "say" and "print". say and print return true if the print succeeded, just like in perl 5. > say say "hi"; hi True Useful if printing to a filehandle, and the file you're writing to is on a volume that fills up. Or a network drive that goes away. You do

Re: routine declaration line question

2018-10-03 Thread Trey Harris
On Wed, Oct 3, 2018 at 22:21 ToddAndMargo wrote: > >> On 04/10/2018 03:07, ToddAndMargo wrote: > >>> Hi All, > >>> > >>> In another thread, Timo wrote me: > >>> > >>> The "-->" part of the signature is optional. If there isn't > >>> one, it defaults to Mu, which is the type that

Re: bitwise paper?

2018-10-03 Thread Trey Harris
Todd, Assuming you are suggesting your examples are showing differences between the languages, in all your examples of differences between Perl 6 and Perl 5 below, you are using the wrong operator or you changed one of the arguments between the Perl 5 and Perl 6 examples. I won't go through them

Re: routine declaration line question

2018-10-03 Thread ToddAndMargo
On 04/10/2018 03:07, ToddAndMargo wrote: Hi All, In another thread, Timo wrote me: The "-->" part of the signature is optional. If there isn't one, it defaults to Mu, which is the type that everything conforms to, i.e. the sub or method that either has "--> Mu"

Re: bitwise paper?

2018-10-03 Thread ToddAndMargo
My keeper file so far: Perl: bitwise operators: alias p5='perl6 -E' alias p6='perl6 -e' Bitwise AND: $ p6 'my $v = 32 +& 16; say $v;' 0 $ p5 'my $v = 32 & 16; say $v;' 0 Bitwise OR: $ p5 'my $v = 32 | 16; say $v;' 48 $ p6 'my $v = 32 +| 16; say $v;' 48

Re: routine declaration line question

2018-10-03 Thread Timo Paulssen
I just spotted a grave mistake in my earlier mail: the --> constraints are validated at *run* time, not *compile* time; that's a very big difference, and an important one. Of course "every time a sub or method returns" doesn't make much sense if i had meant "compile time", but I felt i should

Re: routine declaration line question

2018-10-03 Thread Trey Harris
_All_ routines in Perl 6 return _something._ A lack of a "-->" simply indicates stylistically that the return is not useful because it's whatever "falls off the end". (There's a bit of variance here as I'm not sure it's a convention everyone has followed.) It's equivalent to "--> Mu" because

Re: routine declaration line question

2018-10-03 Thread Brandon Allbery
Perl 6 routines always return *something*; if you don't return anything explicitly, it will return the result of the last statement/expression, or Mu as a last resort. (Mu is the "least defined value" in Perl 6. Any is somewhat more common, but is slightly more defined since it can participate in

routine declaration line question

2018-10-03 Thread ToddAndMargo
Hi All, In another thread, Timo wrote me: The "-->" part of the signature is optional. If there isn't one, it defaults to Mu, which is the type that everything conforms to, i.e. the sub or method that either has "--> Mu" explicitly, or has it by leaving it out, may

Re: bitwise paper?

2018-10-03 Thread ToddAndMargo
> I'm looking at > https://docs.perl6.org/language/operators#index-entry-Numeric_bitwise_AND_operator > right now and it has entries for every bitwise operator. I suggest you > hold down the SHIFT key and press reload to clear your browser cache. > > > > But, now that I know what to look

Re: bitwise paper?

2018-10-03 Thread Trey Harris
On Wed, Oct 3, 2018 at 20:56 ToddAndMargo wrote: > On 10/3/18 1:50 PM, Trey Harris wrote: > > > > On Wed, Oct 3, 2018 at 13:38 ToddAndMargo > > wrote: > > > > > Go to docs.perl6.org > > . Type "bitwise" into

Re: What are the official names?

2018-10-03 Thread ToddAndMargo
On Wed, Oct 3, 2018 at 6:31 PM ToddAndMargo > wrote: On 10/3/18 3:34 AM, Ralph Mellor wrote: > That's called a routine declaration. That's the one. Thank you! On 10/3/18 3:39 PM, Ralph Mellor wrote: Thanks for the feedback. Note that this is

Re: bitwise paper?

2018-10-03 Thread ToddAndMargo
On 10/3/18 1:50 PM, Trey Harris wrote: On Wed, Oct 3, 2018 at 13:38 ToddAndMargo > wrote: > Go to docs.perl6.org . Type "bitwise" into the > search box. You will see a popup, "Numeric bitwise AND

Feedback requested on playlist of 200 Perl 6 videos

2018-10-03 Thread Ralph Mellor
On Wed, Oct 3, 2018 at 6:16 AM David Green wrote: > There are quite a few recorded P6 presentations around, but I > don't know if there's a collected list anywhere, or one that links > to recent talks (anything not too out-of-date). > I've been building a collection of P6 videos for about 5

Re: What are the official names?

2018-10-03 Thread Ralph Mellor
Thanks for the feedback. Note that this is also a routine declaration: sub postcircumfix:<[ ]> ($lhs, $inside) { ... } The term "name" is ambiguous. I guessed you might mean it generically, so that's why I started with "routine declaration". But "name" has a more specific meaning in Perl 6 so

Re: bitwise paper?

2018-10-03 Thread Trey Harris
On Wed, Oct 3, 2018 at 13:38 ToddAndMargo wrote: > > Go to docs.perl6.org . Type "bitwise" into the > > search box. You will see a popup, "Numeric bitwise AND operator". Click > > it to be taken to > > >

Re: Could this be any more obscure?

2018-10-03 Thread ToddAndMargo
On 10/3/18 11:33 AM, ToddAndMargo wrote: On 10/2/18 10:16 PM, David Green wrote: On 2018-09-30 9:31 pm, ToddAndMargo wrote:  >By the way, schools have books.  Why is it do you suppose that that schools also have teacher? Well, why is it, do you suppose, that hiring a tutor costs so much

Re: Could this be any more obscure?

2018-10-03 Thread ToddAndMargo
On 10/2/18 10:16 PM, David Green wrote: On 2018-09-30 9:31 pm, ToddAndMargo wrote: >By the way, schools have books.  Why is it do you suppose that that schools also have teacher? Well, why is it, do you suppose, that hiring a tutor costs so much more than buying a book? Certainly, some

Re: No. It is lucid! Re: Could this be any more obscure?

2018-10-03 Thread ToddAndMargo
On 10/2/18 9:02 PM, Richard Hainsworth wrote: The Perl6 community is warm, generous, and intellectually inspiring. Those virtues should be defended against unseemly and intemperate language. Calling a documentation writer a 'jerk' is wrong. Agreed. They are very much so. And since you are a

Re: bitwise paper?

2018-10-03 Thread ToddAndMargo
On 10/2/18 9:46 PM, Trey Harris wrote: On Tue, Oct 2, 2018 at 23:57 ToddAndMargo > wrote: Hi All, Does anyone know of a paper out in web land showing how to do bitwise operations?  DuckDuckGo give me tons of hits for Perl 5. Trying to AND

Re: bitwise paper?

2018-10-03 Thread ToddAndMargo
On 10/2/18 10:16 PM, David Green wrote: On 2018-10-02 9:57 pm, ToddAndMargo wrote: Does anyone know of a paper out in web land showing how to do bitwise operations? Trying to AND 0010 with 0001 $ p6 'my $v = 32 & 16; say $v;' If you search docs.perl6.org for "bitwise" you will find

Re: What are the official names?

2018-10-03 Thread ToddAndMargo
On 10/3/18 8:27 AM, Vittore Scolari wrote: "Apocalypse 6: Subroutines" document define that as a subroutine declaration Thank you!

Re: What are the official names?

2018-10-03 Thread ToddAndMargo
On 10/3/18 3:34 AM, Ralph Mellor wrote: That's called a routine declaration. That's the one. Thank you!

Re: What are the official names?

2018-10-03 Thread Vittore Scolari
To simplify, it is my understanding that the "Apocalypse 6: Subroutines" document define that as a subroutine declaration, with signature. Forgetting the nomenclature, that might well be inspired by magical imaginary, AFAIK, it is practically just pattern matching, same as a regex: to teach the

Re: Landing page for Documentation

2018-10-03 Thread JJ Merelo
Hi, El mié., 3 oct. 2018 a las 12:13, Tom Browder () escribió: > On Wed, Oct 3, 2018 at 12:14 AM Richard Hainsworth > wrote: > > I have just started a review of the documentation for perl6. > > When I hit `https://docs.perl6.org/language.html` > I get a

Re: What are the official names?

2018-10-03 Thread Ralph Mellor
> Any idea what the official name of the crypto line is? You haven't mentioned "crypto line" until this point. So I'm guessing you mean the line that starts "multi". That's called a routine declaration. More specifically a method declaration. More specifically a multi method declaration.

Re: Landing page for Documentation

2018-10-03 Thread Tom Browder
On Wed, Oct 3, 2018 at 12:14 AM Richard Hainsworth wrote: > I have just started a review of the documentation for perl6. > When I hit `https://docs.perl6.org/language.html` I get a list of > sections that is the same as the alphabetical list of pod files in >

Re: Could this be any more obscure?

2018-10-03 Thread Elizabeth Mattijsen
> On 3 Oct 2018, at 02:48, ToddAndMargo wrote: > > On 10/2/18 2:24 AM, Elizabeth Mattijsen wrote: >> Also, a hopefully less steep introduction: >> >> https://opensource.com/article/18/9/signatures-perl-6 >> > > Will do! Thank you! > > Do you have an index to other stuff you have