Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Examples of Incorrect Abstractions in Other Languages. Parent comment
x+=y is equivalent to x.append(y)
x = x + y creates a new list, then assign it to x (highly inefficient in a loop)
There are no comments on this comment yet.
x+=y is equivalent to x.append(y)
x = x + y creates a new list, then assign it to x (highly inefficient in a loop)