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 0)…
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.
> 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…
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.
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 0)…
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.
> 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…
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.