Newbie Q: Class Privacy (or lack of)

Ray ray_usenet at yahoo.com
Thu Jul 27 03:44:47 EDT 2006


Sybren Stuvel wrote:
> Ray enlightened us with:
> > Also having to check whether a name has already existed can be a
> > major pain in the butt with Python. With Java you always know when a
> > name has already existed, and what type is bound to the name. I
> > consider this to be a Good Thing (tm).
>
> I don't buy that. With long functions and variable declarations all
> over the place, you can easily miss a few. If you then also forget to
> declare a variable (people make mistakes) you can easily re-use a name
> without knowing.

Huh? No. The compiler will always tell you. Have you ever tried Java
before?

>
> Sybren
> --
> The problem with the world is stupidity. Not saying there should be a
> capital punishment for stupidity, but why don't we just take the
> safety labels off of everything and let the problem solve itself?
>                                              Frank Zappa




More information about the Python-list mailing list