Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
yoo-interested
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
yoo-interested
12y ago
This reminded me of gotchas one can fall to when defining some Lisp macro from scratch. So I decided to test whether rotatef works exactly like Python's multiple assignment: (let ((A (vector 2 1))) (rotatef (elt A
2.
▲
by
yoo-interested
12y ago
I think the idea is to see whether the interviewee is a kind of person who always googles and reads on "gotchas of language X" whenever he/she learns X.
3.
▲
by
yoo-interested
12y ago
> to no longer have functions be first class objects? There are other dynamic languages with functions as first class objects which don't share the "mutable default arguments" gotcha. But having said that, any change rega
4.
▲
by
yoo-interested
12y ago
Speaking of find\_item, is the `for..else` loop (which can be used to write find\_item in another way) considered Pythonic? I personally like `for..else` loops but I don't know where the consensus is at.