As I was looking through some questions on So, I noticed that some questions have certain tags like arrays and if-statement, but no actual tag denoting what language the question is asking about. A few examples of such a question are:
- Finding the max and min values in array of five times
- Navigation controls for quasi-database application
- return source nodes of a directed graph
The above questions aren't necessarily poorly phrased or even misleading questions, but they just don't mention what language the code being referred to is written with. Though in the above questions the syntax is not actually that complicated, it still might mislead someone who specializes in (say) Java and was unable to answer a question with code in C# due to differences in syntax.
Though not all questions necessarily pertain to a certain language, I think the majority of SO users would benefit from a requirement to specify a syntax tag when a question includes a block of code.
Though most users with reputation over 15 know to specify the right amount of information in their questions, this would be aimed at the new users who might just add a single tag like algorithm.
This would also allow members of the community who just browse the feed to quickly answer questions that include the tag of the language they know. I think it would optimize the efficiency with which questions are answered, which is the whole point of So.
These are just my thoughts. What are yours?
EDIT: This would be enforceable for only users with reputation below a certain threshold, somewhere around 20 rep. It might fall under the category of "new user restrictions."
It would force the newer users who might ask a question hastily and may never use their account again to at least specify what syntax they are working with.
It has been brought up in some of the answers that some questions don't pertain to any particular language/syntax, but again this rule would be implemented for the users who want to quickly get an answer and are usually asking less complex and syntax-based questions.