Recently I realised that I had written, entirely by mistake, one of my Raku classes like this:
class Foo {
has method bar {
return 'some string';
}
}
I was surprised to realise that the has method was not an error, and worked as expected.
What is the has doing in this case? Is this an intentional behaviour?