[Chicago] The Chipy network
Brian Ray
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.
>
> +1
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 ++")
True
--
Brian Ray
More information about the Chicago
mailing list