I asked this question: http://stackoverflow.com/questions/4189630/search-for-first-last-any-or-all-occurences
In my opinion the question was clear:
I can't decide whether my (ab)use of yield and subsequent break out of the iteration is a strike of genius or a hideous hack. What do you think? Do you have any other ideas for such a situation?
Meaningful answer could look like this:
- It is good (because...)
- It is bad (because...)
- It is better to do it this way ... (because...)
After 4 days that question still got no meaningful answer, so I decided to answer it myself, and accept my answer. People didn't like that and started voting my answer down and then my answer got deleted by the user Community. I assume that is automated because of too many downvotes or because of flagging or whatever.
My answer was:
Lacking useful answers I am declaring my (ab)use of yield as a strike of genius.
which in my opinion is a fully legitimate answer. It could be better if I explained why, but it is still a fully legitimate answer.
One user commented on my answer telling me that how I answered my own question and accepting that answer was not how SO is meant to work. The FAQ clearly says that it is allowed to answer my own question.
It's also perfectly fine to ask and answer your own question, ...
Why did people not like my own answer? Why did it got deleted?