TLDR: Questions asking for solutions in multiple programming languages are implicitly asking several questions at once. Such a question should be closed as needs more focus until it is restricted to one language only.
If it is already clear that one language is the main goal of the question, e.g. due to comments, help the asker and edit the question directly.
Questions requesting solutions in more than one distinct* language are effectively asking several questions:
- How do I do X in language A?
- How do I do X in language B?
This is especially the case if the question already provides code, research, or similar that would make an answer for language A have a different scope than for language B.
That is just not a helpful situation to collect generally useful Q&A. For people caring about language A the solutions for language B are noise and vice versa. For people not caring about language, the restriction is entirely useless.
The needs more focus close reason applies both in terms of symptom (multiple questions at once) and steps to make the content generally useful:
This can often be fixed by breaking the question into multiple questions or focusing on a specific part of the problem.
If people actually care how to do X in languages A and B, they can ask separate questions. If people prefer to do X in language A, they can remove B from the question.
* There is a case to be made that two languages which are very similar or belong to the same ecosystem might share similar answers for specific issues. Use your best judgement.
Fail
instead ofFalse
andPass
instead ofTrue
. So the question to answer for Python is a completely different one than the one for Bash.bash
tag hoping a shell master may see it. I don't see the problem. OP doesn't require a bash solution so duplicating the question just to add the tag... and get closed because everyone is up in arms that a bash question has python in it ... seems the worse option.