Class Variable Question

Andrew Dalke dalke at acm.org
Tue Apr 10 11:34:59 EDT 2001


Robert Johnson wrote:
>>>"Ken Seehof" <kens at sightreader.com> wrote in message
>>>news:mailman.986858653.28960.python-list at python.org...
>
>>>You can always protect against certain bugs by reducing the
>>>expressiveness and flexibility of a language, but that's not always
>>>a good idea.  For example, by removing the addition operator, we
>>>can prevent errors such as y = x+3 when we really mean y = x+2.
>
>This doesn't make sense.  Getting rid of the addition operator does prevent
>y=x+3 errors but it also prevents what is intended: y=x+2.  I am not sure
>this example demonstrates the point you are trying to make.

I took this in the same vein of
  Q: how do I get rid of this cold?
  A: Well, you could always chop your head off.

                    Andrew
                    dalke at acm.org






More information about the Python-list mailing list