Блог пользователя DoctorLai

Автор DoctorLai, 11 лет назад, По-английски

Is it better to automatically select the right language based on the file extension on code submissions?

For example, if I choose code.py the system should automatically detect it is a Python source code instead of giving me a 'Compiler Error' if I forgot to select the right language?

Thanks

  • Проголосовать: нравится
  • -8
  • Проголосовать: не нравится

»
11 лет назад, # |
  Проголосовать: нравится +6 Проголосовать: не нравится

I don't think it's OK for C++ and Java — there are two versions of each, and these versions are different. For example, gcc3 and gcc4 are not compatible — code can easily get CE under gcc4 and OK under gcc3.

»
11 лет назад, # |
  Проголосовать: нравится +17 Проголосовать: не нравится

I think it's better to make people to choose the default language in the account settings.