Am 13.07.2012 09:07, schrieb Gabor Szabo:
Oh, once I found the problem, I just renamed my method. That's ok.
The thing is that it would be nice if Rakudo caught this and told me about it
as I think I am not the last one to make this error.

Well, the ability to create custom accessors is a feature too.

I think a big part of the problem is how we teach this stuff.
Starting from 'has $.x; makes a public attribute' is wrong. The better approach is 'has $!x; makes a private attribute, and has $.x; gives you the private attribute *and* the accessor'.

I'll try to write some sensible class/object documentation for p6doc.

Cheers,
Moritz

Reply via email to