Re: I reproduced one of the errors!

2020-06-04 Thread Peter Pentchev
On Wed, Jun 03, 2020 at 07:00:53PM -0700, ToddAndMargo via perl6-users wrote: > On 2020-06-03 02:21, Peter Pentchev wrote: > > On Wed, Jun 03, 2020 at 01:06:33AM -0700, ToddAndMargo via perl6-users > > wrote: > > > On 2020-06-02 22:15, Peter Pentchev wrote: > > > > On Tue, Jun 02, 2020 at

Re: I reproduced one of the errors!

2020-06-03 Thread ToddAndMargo via perl6-users
On 2020-06-03 02:21, Peter Pentchev wrote: On Wed, Jun 03, 2020 at 01:06:33AM -0700, ToddAndMargo via perl6-users wrote: On 2020-06-02 22:15, Peter Pentchev wrote: On Tue, Jun 02, 2020 at 07:39:16PM -0700, ToddAndMargo via perl6-users wrote: On 2020-06-01 23:02, Peter Pentchev wrote:

Re: I reproduced one of the errors!

2020-06-03 Thread ToddAndMargo via perl6-users
On 2020-06-03 01:25, Fernando Santagata wrote: On Wed, Jun 3, 2020 at 10:07 AM ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: Is there a way to write a methods as I would write a sub and avoiding the class thing? I re-read the whole thread, but I still fail to

Re: I reproduced one of the errors!

2020-06-03 Thread Peter Pentchev
On Wed, Jun 03, 2020 at 01:12:41PM +0300, Veesh Goldman wrote: > On Wed, Jun 3, 2020, 12:22 Peter Pentchev wrote: > > > On Wed, Jun 03, 2020 at 01:06:33AM -0700, ToddAndMargo via perl6-users > > wrote: > > > On 2020-06-02 22:15, Peter Pentchev wrote: > > > > On Tue, Jun 02, 2020 at 07:39:16PM

Re: I reproduced one of the errors!

2020-06-03 Thread Veesh Goldman
I assume he means a multi method. On Wed, Jun 3, 2020, 12:22 Peter Pentchev wrote: > On Wed, Jun 03, 2020 at 01:06:33AM -0700, ToddAndMargo via perl6-users > wrote: > > On 2020-06-02 22:15, Peter Pentchev wrote: > > > On Tue, Jun 02, 2020 at 07:39:16PM -0700, ToddAndMargo via perl6-users >

Re: I reproduced one of the errors!

2020-06-03 Thread Peter Pentchev
On Wed, Jun 03, 2020 at 01:06:33AM -0700, ToddAndMargo via perl6-users wrote: > On 2020-06-02 22:15, Peter Pentchev wrote: > > On Tue, Jun 02, 2020 at 07:39:16PM -0700, ToddAndMargo via perl6-users > > wrote: > > > On 2020-06-01 23:02, Peter Pentchev wrote: > > > >

Re: I reproduced one of the errors!

2020-06-03 Thread Richard Hainsworth
Is there a way to write a methods as I would write a sub and avoiding the class thing? -T I suppose if a sensei were to ask what blue and yellow make - after explaining colour mixing in great detail - then get the answer red, would the sensei hit her head upon a wall? ... if the aspirant is

Re: I reproduced one of the errors!

2020-06-03 Thread Richard Hainsworth
This is so good as a reply!!! Makes the tedium of questioning worth paying attention to. On 02/06/2020 16:41, Parrot Raiser wrote: I suspect that "methods" were originally distinguished from "subroutines" because it made the rain-dance about the new cure for all civilisation's ills and the

Re: I reproduced one of the errors!

2020-06-03 Thread Fernando Santagata
On Wed, Jun 3, 2020 at 10:07 AM ToddAndMargo via perl6-users < perl6-users@perl.org> wrote: > Is there a way to write a methods as I would write > a sub and avoiding the class thing? > I re-read the whole thread, but I still fail to understand what a "method as a sub, avoiding the class thing"

Re: I reproduced one of the errors!

2020-06-03 Thread ToddAndMargo via perl6-users
On 2020-06-02 22:15, Peter Pentchev wrote: On Tue, Jun 02, 2020 at 07:39:16PM -0700, ToddAndMargo via perl6-users wrote: On 2020-06-01 23:02, Peter Pentchev wrote: https://docs.raku.org/language/classtut Error 522 Ray ID: 59d609616954eb79 • 2020-06-03 02:38:12 UTC Connection timed out Poop!

Re: I reproduced one of the errors!

2020-06-02 Thread Peter Pentchev
On Tue, Jun 02, 2020 at 07:39:16PM -0700, ToddAndMargo via perl6-users wrote: > On 2020-06-01 23:02, Peter Pentchev wrote: > > https://docs.raku.org/language/classtut > > Error 522 Ray ID: 59d609616954eb79 • 2020-06-03 02:38:12 UTC > Connection timed out > > Poop! This is usually some kind of

Re: I reproduced one of the errors!

2020-06-02 Thread ToddAndMargo via perl6-users
On 2020-06-01 23:02, Peter Pentchev wrote: https://docs.raku.org/language/classtut Error 522 Ray ID: 59d609616954eb79 • 2020-06-03 02:38:12 UTC Connection timed out Poop!

Re: I reproduced one of the errors!

2020-06-02 Thread ToddAndMargo via perl6-users
On 2020-06-02 07:04, Andy Bach wrote: > Some times methods are great for human readability.  I would like to have both in my tool chest. Not sure that's really answering the question Richard was asking.  I believe he was looking for a more specific answer - when would you want to use a

Re: I reproduced one of the errors!

2020-06-02 Thread Peter Pentchev
On Tue, Jun 02, 2020 at 09:34:30PM +0300, Peter Pentchev wrote: > On Tue, Jun 02, 2020 at 11:41:31AM -0400, Parrot Raiser wrote: > > I suspect that "methods" were originally distinguished from > > "subroutines" because it made the rain-dance about the new cure for > > all civilisation's ills and

Re: I reproduced one of the errors!

2020-06-02 Thread Peter Pentchev
On Tue, Jun 02, 2020 at 11:41:31AM -0400, Parrot Raiser wrote: > I suspect that "methods" were originally distinguished from > "subroutines" because it made the rain-dance about the new cure for > all civilisation's ills and the heartbreak of psoriasis, > Object-Oriented Programming, look more

Re: I reproduced one of the errors!

2020-06-02 Thread Parrot Raiser
I suspect that "methods" were originally distinguished from "subroutines" because it made the rain-dance about the new cure for all civilisation's ills and the heartbreak of psoriasis, Object-Oriented Programming, look more impressive. After one has seen a few programming religions launched, the

Re: I reproduced one of the errors!

2020-06-02 Thread Andy Bach
methods. I'm not sure what you see them as or how you see them as different than subs. From: ToddAndMargo via perl6-users Sent: Monday, June 1, 2020 5:49 PM To: perl6-users@perl.org Subject: Re: I reproduced one of the errors! On 2020-06-01 15:19, Richard Hains

Re: I reproduced one of the errors!

2020-06-02 Thread Peter Pentchev
On Tue, Jun 02, 2020 at 08:52:37AM +0300, Peter Pentchev wrote: > On Mon, Jun 01, 2020 at 01:36:19PM -0700, ToddAndMargo via perl6-users wrote: [snip] > > A follow up question: > > > > Is there a booboo in the documentation here? > > > > https://docs.raku.org/routine/starts-with > > multi method

Re: I reproduced one of the errors!

2020-06-02 Thread Peter Pentchev
On Mon, Jun 01, 2020 at 01:38:48PM -0700, ToddAndMargo via perl6-users wrote: > On 2020-06-01 02:21, Peter Pentchev wrote: > > class Thing { > > multi method do-things(Int:D $value) { > > say "A thing can do things with an integer: $value"; > > } > > > > multi method

Re: I reproduced one of the errors!

2020-06-01 Thread Peter Pentchev
On Mon, Jun 01, 2020 at 01:36:19PM -0700, ToddAndMargo via perl6-users wrote: > On 2020-06-01 02:21, Peter Pentchev wrote: > > On Mon, Jun 01, 2020 at 01:15:23AM -0700, ToddAndMargo via perl6-users > > wrote: > > > On 2020-05-31 17:13, Peter Pentchev wrote: > > > > On Mon, Jun 01, 2020 at

Re: I reproduced one of the errors!

2020-06-01 Thread ToddAndMargo via perl6-users
On 2020-06-01 15:19, Richard Hainsworth wrote: Todd, You said you asked if you could create your own methods, and that you were told 'no'. That was a surprising statement, so I asked about some context about who would say such a stupid(?!) thing. Seems like this was a half-remembered 'no' 

Re: I reproduced one of the errors!

2020-06-01 Thread Richard Hainsworth
Todd, You said you asked if you could create your own methods, and that you were told 'no'. That was a surprising statement, so I asked about some context about who would say such a stupid(?!) thing. Seems like this was a half-remembered 'no' somewhere in a cloud . Lets leave it there. You

Re: I reproduced one of the errors!

2020-06-01 Thread ToddAndMargo via perl6-users
On 2020-06-01 13:46, Richard Hainsworth wrote: Todd, I'd be interested to see where someone said 'no' to creating your own methods. Methods are integral to the whole idea of a class. It's also clear throughout the Raku documentation that there are methods. But for a method, you need a 

Re: I reproduced one of the errors!

2020-06-01 Thread Richard Hainsworth
Todd, I'd be interested to see where someone said 'no' to creating your own methods. Methods are integral to the whole idea of a class. It's also clear throughout the Raku documentation that there are methods. But for a method, you need a class. Peter put the method in a class. Do you want

Re: I reproduced one of the errors!

2020-06-01 Thread ToddAndMargo via perl6-users
On 2020-06-01 02:21, Peter Pentchev wrote: class Thing { multi method do-things(Int:D $value) { say "A thing can do things with an integer: $value"; } multi method do-things(Rational:D $value) { say "A thing can do things with a rational

Re: I reproduced one of the errors!

2020-06-01 Thread ToddAndMargo via perl6-users
On 2020-06-01 02:21, Peter Pentchev wrote: On Mon, Jun 01, 2020 at 01:15:23AM -0700, ToddAndMargo via perl6-users wrote: On 2020-05-31 17:13, Peter Pentchev wrote: On Mon, Jun 01, 2020 at 03:12:05AM +0300, Peter Pentchev wrote: On Sun, May 31, 2020 at 04:29:55PM -0700, ToddAndMargo via

Re: I reproduced one of the errors!

2020-06-01 Thread Peter Pentchev
On Mon, Jun 01, 2020 at 12:26:16PM +0300, Peter Pentchev wrote: > On Mon, Jun 01, 2020 at 12:21:37PM +0300, Peter Pentchev wrote: > > On Mon, Jun 01, 2020 at 01:15:23AM -0700, ToddAndMargo via perl6-users > > wrote: [snip] > > > Hi Peter, > > > > > > I screw up A LOT. And just in case this part

Re: I reproduced one of the errors!

2020-06-01 Thread Peter Pentchev
On Mon, Jun 01, 2020 at 12:21:37PM +0300, Peter Pentchev wrote: > On Mon, Jun 01, 2020 at 01:15:23AM -0700, ToddAndMargo via perl6-users wrote: > > On 2020-05-31 17:13, Peter Pentchev wrote: > > > On Mon, Jun 01, 2020 at 03:12:05AM +0300, Peter Pentchev wrote: > > > > On Sun, May 31, 2020 at

Re: I reproduced one of the errors!

2020-06-01 Thread Peter Pentchev
On Mon, Jun 01, 2020 at 01:15:23AM -0700, ToddAndMargo via perl6-users wrote: > On 2020-05-31 17:13, Peter Pentchev wrote: > > On Mon, Jun 01, 2020 at 03:12:05AM +0300, Peter Pentchev wrote: > > > On Sun, May 31, 2020 at 04:29:55PM -0700, ToddAndMargo via perl6-users > > > wrote: > > > > On

Re: I reproduced one of the errors!

2020-06-01 Thread ToddAndMargo via perl6-users
On 2020-05-31 17:13, Peter Pentchev wrote: On Mon, Jun 01, 2020 at 03:12:05AM +0300, Peter Pentchev wrote: On Sun, May 31, 2020 at 04:29:55PM -0700, ToddAndMargo via perl6-users wrote: On 2020-05-31 04:58, Peter Pentchev wrote: So my beef is when you feed these guys an undefined variable,

Re: I reproduced one of the errors!

2020-06-01 Thread ToddAndMargo via perl6-users
On 2020-05-31 16:21, Peter Pentchev wrote: On Sun, May 31, 2020 at 04:06:28PM -0700, ToddAndMargo via perl6-users wrote: On 2020-05-31 12:48, Veesh Goldman wrote: well, literally it would mean something like "a direct result of inability to read is to not understand", which in context should

Re: I reproduced one of the errors!

2020-05-31 Thread Peter Pentchev
On Mon, Jun 01, 2020 at 03:12:05AM +0300, Peter Pentchev wrote: > On Sun, May 31, 2020 at 04:29:55PM -0700, ToddAndMargo via perl6-users wrote: > > On 2020-05-31 04:58, Peter Pentchev wrote: > > > > > So my beef is when you feed these guys an undefined > > > > > variable, that they needs to tell

Re: I reproduced one of the errors!

2020-05-31 Thread Peter Pentchev
On Sun, May 31, 2020 at 04:29:55PM -0700, ToddAndMargo via perl6-users wrote: > On 2020-05-31 04:58, Peter Pentchev wrote: > > > > So my beef is when you feed these guys an undefined > > > > variable, that they needs to tell you it requires > > > > a "defined" variable. Not a bunch of useless

Re: I reproduced one of the errors!

2020-05-31 Thread ToddAndMargo via perl6-users
On 2020-05-31 04:58, Peter Pentchev wrote: So my beef is when you feed these guys an undefined variable, that they needs to tell you it requires a "defined" variable. Not a bunch of useless rubbish. For example (useless rubbish): And also... I thought I mentioned this before. You want a more

Re: I reproduced one of the errors!

2020-05-31 Thread Peter Pentchev
On Sun, May 31, 2020 at 04:06:28PM -0700, ToddAndMargo via perl6-users wrote: > On 2020-05-31 12:48, Veesh Goldman wrote: > > well, literally it would mean something like "a direct result of > > inability to read is to not understand", which in context should mean if > > you can't read you won't

Re: I reproduced one of the errors!

2020-05-31 Thread ToddAndMargo via perl6-users
On 2020-05-31 12:48, Veesh Goldman wrote: well, literally it would mean something like "a direct result of inability to read is to not understand", which in context should mean if you can't read you won't understand. But I think the point was made. Hi Veesh, Please help me with my reading

Re: I reproduced one of the errors!

2020-05-31 Thread Veesh Goldman
well, literally it would mean something like "a direct result of inability to read is to not understand", which in context should mean if you can't read you won't understand. But I think the point was made. On Sun, May 31, 2020 at 10:42 PM Elizabeth Mattijsen wrote: > I won't understand because

Re: I reproduced one of the errors!

2020-05-31 Thread Elizabeth Mattijsen
I won't understand because I cannot learn to read, so I want everybody to adapt to me so that I can enforce my understanding to you > On 31 May 2020, at 20:40, Richard Hainsworth wrote: > > Probably more like: I won't understand if I don't read. > > On 31/05/2020 18:43, ToddAndMargo via

Re: I reproduced one of the errors!

2020-05-31 Thread Richard Hainsworth
Probably more like: I won't understand if I don't read. On 31/05/2020 18:43, ToddAndMargo via perl6-users wrote: On Sun, May 31, 2020, 09:05 Veesh Goldman > wrote:     読めないと分かりませんよ。 On 2020-05-30 23:15, Veesh Goldman wrote: Sorry, my Japanese is mediocre. Meant

Re: I reproduced one of the errors!

2020-05-31 Thread ToddAndMargo via perl6-users
On Sun, May 31, 2020, 09:05 Veesh Goldman > wrote: 読めないと分かりませんよ。 On 2020-05-30 23:15, Veesh Goldman wrote: Sorry, my Japanese is mediocre. Meant to say that you can't complain about not understanding something if you haven't learned how to read it. Google

Re: I reproduced one of the errors!

2020-05-31 Thread Peter Pentchev
On Sun, May 31, 2020 at 02:53:45PM +0300, Peter Pentchev wrote: > On Sat, May 30, 2020 at 04:22:56PM -0700, ToddAndMargo via perl6-users wrote: > > On 2020-05-30 04:19, Peter Pentchev wrote: > > > On Fri, May 29, 2020 at 04:36:41PM -0700, ToddAndMargo via perl6-users > > > wrote: > > > > > > Hi

Re: I reproduced one of the errors!

2020-05-31 Thread Peter Pentchev
On Sat, May 30, 2020 at 04:22:56PM -0700, ToddAndMargo via perl6-users wrote: > On 2020-05-30 04:19, Peter Pentchev wrote: > > On Fri, May 29, 2020 at 04:36:41PM -0700, ToddAndMargo via perl6-users > > wrote: > > > > Hi Peter, > > > > > > No doubt it is operating as designed. > > > > > > It

Re: I reproduced one of the errors!

2020-05-31 Thread Veesh Goldman
Sorry, my Japanese is mediocre. Meant to say that you can't complain about not understanding something if you haven't learned how to read it. On Sun, May 31, 2020, 09:05 Veesh Goldman wrote: > 読めないと分かりませんよ。 > > > On Sun, May 31, 2020, 02:23 ToddAndMargo via perl6-users < > perl6-users@perl.org>

Re: I reproduced one of the errors!

2020-05-31 Thread Veesh Goldman
読めないと分かりませんよ。 On Sun, May 31, 2020, 02:23 ToddAndMargo via perl6-users < perl6-users@perl.org> wrote: > On 2020-05-30 04:19, Peter Pentchev wrote: > > On Fri, May 29, 2020 at 04:36:41PM -0700, ToddAndMargo via perl6-users > wrote: > > >> Hi Peter, > >> > >> No doubt it is operating as designed.

Re: I reproduced one of the errors!

2020-05-30 Thread ToddAndMargo via perl6-users
On 2020-05-30 04:19, Peter Pentchev wrote: On Fri, May 29, 2020 at 04:36:41PM -0700, ToddAndMargo via perl6-users wrote: Hi Peter, No doubt it is operating as designed. It would be a lot more friendly if "Str:U" was changed to "Str:D". Oh please! Oh Please! Sorry, I don't really

Re: I reproduced one of the errors!

2020-05-30 Thread Peter Pentchev
On Fri, May 29, 2020 at 04:36:41PM -0700, ToddAndMargo via perl6-users wrote: > On 2020-05-28 06:39, Peter Pentchev wrote: > > On Wed, May 27, 2020 at 03:12:01PM -0700, ToddAndMargo via perl6-users > > wrote: > > > > On 2020-05-27 14:32, Andy Bach wrote: > > > > > #!/usr/bin/env raku > > > > > my

Re: I reproduced one of the errors!

2020-05-29 Thread ToddAndMargo via perl6-users
On 2020-05-28 06:39, Peter Pentchev wrote: On Wed, May 27, 2020 at 03:12:01PM -0700, ToddAndMargo via perl6-users wrote: On 2020-05-27 14:32, Andy Bach wrote: #!/usr/bin/env raku my Str $x; if $x.starts-with( "[" ) && $x.contains( "]" ) { say "Passed"; } else { say "Failed"; }

Re: I reproduced one of the errors!

2020-05-28 Thread Peter Pentchev
On Wed, May 27, 2020 at 03:12:01PM -0700, ToddAndMargo via perl6-users wrote: > > On 2020-05-27 14:32, Andy Bach wrote: > > > #!/usr/bin/env raku > > > my Str $x; > > > if $x.starts-with( "[" ) && > > > $x.contains( "]" ) > > > { say "Passed"; } else { say "Failed"; } > > > > > >

Re: I reproduced one of the errors!

2020-05-27 Thread ToddAndMargo via perl6-users
On 2020-05-27 14:32, Andy Bach wrote: #!/usr/bin/env raku my Str $x; if $x.starts-with( "[" ) && $x.contains( "]" ) { say "Passed"; } else { say "Failed"; } K:\Windows\NtUtil>raku Contains.Test.pl6 Cannot resolve caller starts-with(Str:U: Str:D); none of these signatures match (Cool:D: Cool:D

Re: I reproduced one of the errors!

2020-05-27 Thread Andy Bach
#!/usr/bin/env raku my Str $x; if $x.starts-with( "[" ) && $x.contains( "]" ) { say "Passed"; } else { say "Failed"; } K:\Windows\NtUtil>raku Contains.Test.pl6 Cannot resolve caller starts-with(Str:U: Str:D); none of these signatures match (Cool:D: Cool:D $needle, :i(:$ignorecase)!,