On Mon, Dec 9, 2019 at 10:29 AM Simon Proctor <simon.proc...@gmail.com>
wrote:

> I think this does highlight something we probably should document more.
>
> How to read signatures. Because it's a *very* powerful part of the
> language that if you don't understand you're only using it at half strength.
>
> multi method contains(Str:D: Cool:D $needle, Cool:D $pos --> Bool:D)
>
> If not some documentation magic, it's a core part of the language. It tell
> you this method is called on a defined Str (Str:D:) it takes 2 positional
> arguments which have to be defined Cool types ($needle and $pos) and it
> returns a Boolean.
>
> That is the code as it will be written in the Str Role.
>
> I *highly* advise learning how signatures work.
>

Hmm... Project for someone bored -- We've already got a great Signature
parser, how about creating a simplified human (HTML) description
automagically from any Signature, then linking it from the actual Signature
on each page...

Reply via email to