Prothon gets Major Facelift in Vers 0.1.0 [Prothon]

gabor gabor at z10n.net
Mon May 24 16:08:27 EDT 2004


On Mon, 2004-05-24 at 18:10, Mark Hahn wrote:
> "gabor" <gabor at z10n.net> wrote
> 
> > > Does any Python user have a story of regret of using an object's
> attribute
> > > when they should not have and encapsulation would have saved their
> butts?
> >
> > not exactly...
> >
> > i don't need restriction, only a hint...
> >
> > if i look thru some java code, i immediately see what variables/methods
> > should/can i access... it's not the same for python...
> >
> > for example at work where i use java, there are classes that have
> > 10-15methods, but only 4public ones... it immediately gets simplier to
> > understand/use the class
> 
> I sounds to me like you want a better documentation solution, not an
> encapsulation solution.  Now that is something I agree with 100% and have
> near the top of the list in Prothon.  I personally think docs are a weak
> point in Python.

documentation is fine.... the more the better...

but the argument that
more-docs-should-be-enough-because-you-can-document-which-functions-are-private
reminds me a little of the 
but-you-can-write-object-oriented-code-in-assembler....

or that you-can-write-object-oriented-code-in-c...

yes, you can implement the needed mechanism in every language, but it's
not always fun....
:)

gabor





More information about the Python-list mailing list