News for hackers. Stuff that matters.
Re:Show HN: 15-question programming quiz with answers by ammon on Tuesday May 23, 2017 @01:25PM (#14403130)
Good point. I think that objects are passed by reference in a high enough % of language in common use (PHP and C++ are the two exceptions I can think of) that this is a fair question. But if enough people think it's bad, we'll remove it.
Re:Show HN: 15-question programming quiz with answers by marcosdumay on Tuesday May 23, 2017 @02:19PM (#14403738)
You got me on that too. A high enough % of the languages pass stuff by value (C/C++), copy on assignment (C++, D, I'm sure there are more), or do not have the concept of references or changes to start with (Prolog, Haskell).

Anyway, if you want to bias it into Python, go for it. It's a fun quiz.

Re:Show HN: 15-question programming quiz with answers by Bartweiss on Tuesday May 23, 2017 @07:18PM (#14406297)
Copy on assignment was what got me, and I didn't feel terribly bad for missing it. No harm done though, seeing as nothing was riding on the quiz.
Re:Show HN: 15-question programming quiz with answers by macintux on Tuesday May 23, 2017 @02:07PM (#14403614)
Every functional programmer in the world is looking at you askance.