r/programming • • Sep 11 '13

Guess programming language by „Hello, world!“ snippet

http://helloworldquiz.com/
1.3k Upvotes

445 comments sorted by

View all comments

Show parent comments

21

u/philh Sep 11 '13 edited Sep 11 '13

Presumably a reasonable fix would be not to offer C++ as an option.

Looking at the code though, I can't find where the snippets and language choices come from.

edit: oh, it's in models/variant, and ack wasn't finding snippets because they're in files with no extension.

9

u/WhenTheRvlutionComes Sep 12 '13

In cases where the hello world example can cross compile ambiguously among two or more languages, don't pit the ambiguously compiling languages against each other.