[Chicago] The Chipy network

Tim Saylor tim.saylor at gmail.com
Mon Oct 17 23:43:30 CEST 2011


If your algorithm requires a faster increment operator you're probably doing
it wrong.

On Mon, Oct 17, 2011 at 4:23 PM, Joshua Herman <zitterbewegung at gmail.com>wrote:

> Prefix usage is better to use because postfix uses requires you to
> create a copy of the variable while prefix usage is much faster and
> doesn't require the copy I believe.
>
>
> ---Profile:---
> http://www.google.com/profiles/zitterbewegung
>
>
>
>
>
> On Mon, Oct 17, 2011 at 3:02 PM, David Rock <david at graniteweb.com> wrote:
> > * Martin Maney <maney at two14.net> [2011-10-15 21:25]:
> >> On Sat, Oct 15, 2011 at 04:06:02PM -0500, Joshua Herman wrote:
> >> > On Oct 15, 2011, at 3:22 PM, Eric Stein wrote:
> >> > > P.S. Does the lack of increment and decrement operators in Python
> bug
> >> > > anyone else?
> >>
> >> > Yea, it annoys me too...
> >>
> >> My knee-jerk was "yeah, me too", but then I stopped and tried to
> >> remember the last time I wanted to use any of them in Python code, and
> >> I couldn't.  All the examples I came up with seemed to me to be
> >> unpythonic - writing a loop that should be for range(something) the
> >> hard way or some such.  I dimly recall doing stuff like that a decade
> >> ago when I first started dabbling in Python, coming from a largely C
> >> background.  Now, well, as I say, I can think of places they could be
> >> used, but I get those loops by downcoding into C-in-Python.  -1.
> >
> > I don't find it particularly annoying, much for similar reasons.  In the
> > grand scheme of things, I don't think the language is crippled without
> > it.
> >
> > On another related discussion, though; what about the difference between
> > pre or post fix usage(eg, --var vs var--)?  I expect most of us have
> > dealt with this before, but I rarely recall seeing prefix usage.  My
> > experience had primarily been postfix use.  Would your views on missing
> > it change in this case, or not?  For me, I still don't miss it.
> >
> > --
> > David Rock
> > david at graniteweb.com
> >
> > _______________________________________________
> > Chicago mailing list
> > Chicago at python.org
> > http://mail.python.org/mailman/listinfo/chicago
> >
> >
> _______________________________________________
> Chicago mailing list
> Chicago at python.org
> http://mail.python.org/mailman/listinfo/chicago
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20111017/e95df1d6/attachment.html>


More information about the Chicago mailing list