>> Repeating any of this material won't help you. So what is a method to
>> you? How do you think it might be used?

> 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 method vs 
wanting to use a sub.

It may be just me, but I can see methods as class related subroutines (subs 
with the class object passed as an "unlisted" parameter) or subroutines as 
classless methods.  I'm not sure what you see them as or how you see them as 
different than subs.
________________________________
From: ToddAndMargo via perl6-users <perl6-us...@perl.org>
Sent: Monday, June 1, 2020 5:49 PM
To: perl6-us...@perl.org <perl6-us...@perl.org>
Subject: Re: I reproduced one of the errors!

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' somewhere in a cloud . Lets leave it there.

My memory is clear on it.


> You often ask questions that get interesting answers. But rather than
> guessing what you're thinking, perhaps you might explain how you see a
> 'subroutine' differing from a 'method'. If you look at the Raku
> documentation, which I know for you, is like shoving your head in a
> barrel of cold water, you will find quite a few examples of methods,
> subs, blocks, and pointies, together with things called signatures.
> Repeating any of this material won't help you. So what is a method to
> you? How do you think it might be used?
>
> Richard


Some times methods are great for human readability.  I
would like to have both in my tool chest.

Reply via email to