Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

You are basically saying: "This guy is asking a question without knowing the answer. This annoys me."

The correct approach is to write an answer explaining why the question doesn't make sense. Or better yet, write a Q&A style post where you answer your own question "How to use std::map as a hash table?", with the answer "You can't, because of...".

You can then use that post as reference, to close such questions as duplicates in the future. Eventually, it will become a "frequent" question when enough duplicates have been linked to it.

This is how it is done in other such cases. To continue with C++ examples, you can have someone asking "why does i = i++ print different results on different compilers? (code follows to illustrate)" That question is similarly flawed, because the code invokes undefined behavior. It doesn't make much sense to post answers investigating how this undefined behavior manifests itself on various systems. The correct way is to close it as a duplicate to "Why are these constructs undefined behavior?""Why are these constructs undefined behavior?".

Your case is exactly the same as the i = i++ one.

You are basically saying: "This guy is asking a question without knowing the answer. This annoys me."

The correct approach is to write an answer explaining why the question doesn't make sense. Or better yet, write a Q&A style post where you answer your own question "How to use std::map as a hash table?", with the answer "You can't, because of...".

You can then use that post as reference, to close such questions as duplicates in the future. Eventually, it will become a "frequent" question when enough duplicates have been linked to it.

This is how it is done in other such cases. To continue with C++ examples, you can have someone asking "why does i = i++ print different results on different compilers? (code follows to illustrate)" That question is similarly flawed, because the code invokes undefined behavior. It doesn't make much sense to post answers investigating how this undefined behavior manifests itself on various systems. The correct way is to close it as a duplicate to "Why are these constructs undefined behavior?".

Your case is exactly the same as the i = i++ one.

You are basically saying: "This guy is asking a question without knowing the answer. This annoys me."

The correct approach is to write an answer explaining why the question doesn't make sense. Or better yet, write a Q&A style post where you answer your own question "How to use std::map as a hash table?", with the answer "You can't, because of...".

You can then use that post as reference, to close such questions as duplicates in the future. Eventually, it will become a "frequent" question when enough duplicates have been linked to it.

This is how it is done in other such cases. To continue with C++ examples, you can have someone asking "why does i = i++ print different results on different compilers? (code follows to illustrate)" That question is similarly flawed, because the code invokes undefined behavior. It doesn't make much sense to post answers investigating how this undefined behavior manifests itself on various systems. The correct way is to close it as a duplicate to "Why are these constructs undefined behavior?".

Your case is exactly the same as the i = i++ one.

Source Link
Lundin
  • 212.1k
  • 14
  • 148
  • 244

You are basically saying: "This guy is asking a question without knowing the answer. This annoys me."

The correct approach is to write an answer explaining why the question doesn't make sense. Or better yet, write a Q&A style post where you answer your own question "How to use std::map as a hash table?", with the answer "You can't, because of...".

You can then use that post as reference, to close such questions as duplicates in the future. Eventually, it will become a "frequent" question when enough duplicates have been linked to it.

This is how it is done in other such cases. To continue with C++ examples, you can have someone asking "why does i = i++ print different results on different compilers? (code follows to illustrate)" That question is similarly flawed, because the code invokes undefined behavior. It doesn't make much sense to post answers investigating how this undefined behavior manifests itself on various systems. The correct way is to close it as a duplicate to "Why are these constructs undefined behavior?".

Your case is exactly the same as the i = i++ one.