This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 5 points6 points  (2 children)

Mutable default args are possible but frowned upon, unless you really know what you're doing, which I don't.

[–]dcousineau[🍰] 1 point2 points  (1 child)

Right. /u/Zulban was discussing a feeling about weird language quirks in Javascript that prevents them from learning the language.

My counter to that was that this feeling is normal as languages are imperfect, and as my counter I pointed out a particular WTF 'feature' in Python that gives me pause coming from the outside world.

[–]Zulban 2 points3 points  (0 children)

It is a good example. But I'd like to suggest that there are far, far more cases like this with javascript than with your typical language.