(Or, from a less neutral point-of-view, Is it helpful to post a "right" answer for users who found the (wrong) question via external search?)
Yesterday I came across a new answer on a very old, well-answered question where the respondent had addressed the error-message-as-title of the question with an "If this...and if that..." description of another situation that could also produce that same error message. When I downvoted and explained that their hypothetical is contradicted by what was described in the question they agreed but told me they thought the answer would be helpful for others seeking solutions on the internet.
Earlier today I came across a new answer from a different user on another pretty old, pretty well-answered question where the respondent used a language not at all similar (C-style vs. non-C-style) to that tagged and specified in the question. Again, I downvoted and pointed out their answer is ignoring a key part of the question, to which they, again, agreed but told me they found the question through a search1 and, since they find the solution more readable when written in their language of choice2, they thought such an answer would, again, be helpful to others.
While the first respondent has a sub-100 reputation, the second has several thousand and both have been members for at least a couple years, so, at least in this anecdotal instance, it does not seem to be a matter of a user being unfamiliar with Stack Overflow. Each question has an answer that was accepted long ago.
My notes/opinions:
If they had performed a (well-crafted) search for a solution in one language and a top result was an answer written in another, that might be significant; instead, they specifically said they did not include a language in their search, so of course they got a result that uses something other than their language of choice
Assuming they're familiar with the language in their answer and not familiar with the language in the question (which their tag scores suggests is the case), of course they'll find an answer written in a familiar language more readable
My question is, in cases like these is there any reasonable justification for this practice? I've bumped into the concept of "signpost" answers once or twice before, but my understanding is that involves fixing up the highest viewed/ranked of a set of related/similar/duplicate questions, not knowingly mis-answering based on one result from one search. Otherwise, to me it seems obvious that ignoring >90% of any given question's details so as to make it a one-stop-shop of "helpful"ness for whatever "others" might eventually stumble across it (whether due to bad search terms, a bad search engine, both, or some other reason) would lead to specific questions (as they all should be?) getting many irrelevant, general answers, thus making it harder to find the answers that truly do answer the question as-asked. And that would be bad.
Assuming not, what I'm really curious to know is, where are people getting this idea? My first thought whenever I see these kinds of "I know this isn't helpful but I thought it'd be helpful" claims is it's just users digging their heels in, as some do, when confronted with negative feedback and trying to justify not throwing their work away by deleting/editing it, but I don't know. Is there some...guidance out there of which this is either a gross misinterpretation or even a correct interpretation but taken way too far? I'm just trying to wrap my mind around how someone could say, for example, what amounts to "My answer does not use a language that is the same as or even vaguely related to that specifically requested in the question" and reconcile that with "My answer is helpful and belongs here just the same."
varchar
tovarbinary
if anybody was wondering" or "I came here searching for how to do this in <non-SQL Server database>. Here's how you'd accomplish the same thing with that."