[Chicago] The Chipy network
brianhray at gmail.com
Tue Oct 18 00:20:53 CEST 2011
On Mon, Oct 17, 2011 at 4:53 PM, Vern Ceder <vceder at gmail.com> wrote:
> On Mon, Oct 17, 2011 at 4:43 PM, Tim Saylor <tim.saylor at gmail.com> wrote:
>> If your algorithm requires a faster increment operator you're probably
>> doing it wrong.
didn't you mean ++.
At first, I disliked this seemingly missing operator. However, I can
see where it leads to mistakes like in C. For example, an extra ++ can
cause some problems for sure. For Python, I am not sure what it means
to have unary operator that should act on pretty static things like
integers and in place. Besides,
| >>> len("i+=1") == len("i ++")
More information about the Chicago