private methods: your opinion wanted

Karl Ramberg karl.ramberg at chello.se
Wed Aug 28 05:02:38 UTC 2002


yampa at mindspring.com wrote:
> 
> Squeak has a way to create private methods by using a method name with "pvt"
> at the beginning. About six methods actually use this, so it isn't common.
> 
> I am working on some code that I will release to the public.  I expect that
> the code will be used and modified by more than just myself. I think private
> methods would help with maintaining the code, and understanding it, especially
> for those who didn't write the code. But so few programmers have used private
> methods that I wonder if Squeakers care about it, or would find it distracting
> if they see it in one place and almost nowhere else in the image.
> 
>  So my question is, should I create public/private methods for this code?

I think private methods usually are in the private category, and not
necessary 
have a selector name indicating it's private.

Karl



More information about the Squeak-dev mailing list