Sometimes there are questions which are just very unlikely to ever be useful to anybody else. This can occur if the problem is specific to the authors code and the answer is trivial. Often these questions are also poor in other ways, but not necessarily.
How do you handle such questions?
My first approach was to deliver the answer to close it and get it out of the way for more important questions. E.g consider this question where the problem is just a small typo. And while i'm sure there will be many more beginners in Matlab who mix up ./
and /
i'm equally sure that that problem has occurred on this site already a thousand times and future Matlab beginners are unlikely to ever find it.
However, an alternate way is to answer the question in a comment and then encourage the author to delete his own question before anybody answers it. E.g. take a look at this question, which was answered in a the comments and then encouraged to be deleted. This is also a good example of an actually very well posed question even tough it's unlikely to be useful to anybody else.
By now I think the second way is a lot better because the authors problem is solved and stackoverflow does not get filled with useless questions, which is a win/win. Or are there any better solutions? Answering the question but at the same time downvoting it to make it disappear would also work but that would discourage (new) users to ask questions.
win/win
with the second suggestion. It would be great if all the questions were to be asked in a fashion that will help other users in future, but it's not a strict rule that we enforce on SO, because it will automatically make thousands of questions off-topic, and it would be almost impossible to ask new questions for a lot of usersitemprop="acceptedAnswer"
attribute on the accepted answer and then Google "knows" that that specific question was actually answered