Dnia Fri, 15 Jul 2011 23:09:02 +0200, Stefan Behnel napisał(a): [...] >> array[count++]=value; >> >> or the more direct pointer management: >> *ptr++=value; > > More direct, sure. But readable? Well, only when you know what this > specific pattern does. If you have to think about it, it may end up hurting > your eyes before you figure it out.
Oh, come on. I don't say the post- and pre-incrementing is good or bad, but please don't exagerate. Almost any other construction is unreadable to people, who don't know this construction, eg. a==1, a+=1 may be completely senseless to mathematicians. Best regards, Waldek -- http://mail.python.org/mailman/listinfo/python-list