Should you downvote an answer that “works” because it is not strictly “correct”?
This is slightly related to a similar question I found on Meta, but is more specific in the following capacity:
Question X is asked by Person A.
A definitive answer is provided for X. It is based upon fact--no opinion is involved.
Another Person (B) provides answer Y--it is a workaround, completely sidestepping the question, but accurately solves the person's problem.
Person A likes the workaround, accepts the answer, and dismisses the fact-based answer, even when it addresses the original question.
Q: How do I write a function with optional parameters?
Answer X: void foo(...);
Answer Y: I prefer to use named arguments with default values instead! -> void foo(int a=0);
While answer Y may be a best practice, and perhaps recommended by a number of individuals...it does not answer the original question, which has a factual answer (that was supplied).
So, what is the best way to resolve this? Comments? Upvotes/Downvotes? More?