in reply to Re: Re: Re: Re: Re: This is why I use Perl
in thread This is why I use Perl
The decision about whether to have public get/set methods is an entirely tangential question.
This is sometimes called the "Uniform Access Principle" (coined, I think, by Meyer in his Object Oriented Software Construction - my copy's gone walk about so I can't check).
As tilly points out, by keeping the attribute and method syntax identical we're free to change our implementation without having to change the API.
|
|---|