[Python-Dev] ++x oddnes

David Ascher DavidA@ActiveState.com
Sat, 11 Aug 2001 17:11:09 -0700


"M.-A. Lemburg" wrote:
> 
> David Ascher wrote:
> >
> > Guido van Rossum wrote:
> >
> > > IMO not worth it changing the language.  Train yourself to write x++
> > > instead. :-)
> >
> > Sounds like an excellent one for PyChecker =)
> 
> Why ? ++x can be put to some real use: I have a counter
> type which actually uses ++x to increment the counter.

The point of linters is to find things that are likely to be errors.  I
claim that ++foo is likely to be an error resulting from the corruption
of young minds by C++ more often than deliberate and appropriate.  

But you could turn it off when you used PyChecker =).

--david