Skip to main content
added 187 characters in body
Source Link
Barmar
  • 778k
  • 27
  • 38

While I admit that the wording of the close reason isn't perfect, I consider this the appropriate close reason for a number of minor syntax errors, including:

  • Writing if (variable = value) when it should use == or ===.
  • Omitting quotes when needed (e.g. around dates in SQL).
  • Forgetting to put () after the function name when intending to call the function.

Sometimes there are useful duplicates, such as Difference between single and double quotes in Bash and I'll use them. But even though there are available duplicates for the difference between = and ==, I usually won't use that dupe reason for the above if question. These questions serve little permanent benefit, since someone with the same problem will virtually never find it in a search, so we're better off closing them as typos and letting the Hoover delete them. So I just post a comment like "file.close should be file.close() to call the function" and VTC.

On the other hand, despite the fact that the text says "not reproducible", I rarely use this close vote simply because I'm unable to reproduce the OP's problem. This usually means they left a relevant detail out of the question, or they didn't copy the code correctly, and I prefer to work out what's missing using comments.

While I admit that the wording of the close reason isn't perfect, I consider this the appropriate close reason for a number of minor syntax errors, including:

  • Writing if (variable = value) when it should use == or ===.
  • Omitting quotes when needed (e.g. around dates in SQL).

Sometimes there are useful duplicates, such as Difference between single and double quotes in Bash and I'll use them. But even though there are available duplicates for the difference between = and ==, I usually won't use that dupe reason for the above if question. These questions serve little permanent benefit, since someone with the same problem will virtually never find it in a search, so we're better off closing them as typos and letting the Hoover delete them.

On the other hand, despite the fact that the text says "not reproducible", I rarely use this close vote simply because I'm unable to reproduce the OP's problem. This usually means they left a relevant detail out of the question, or they didn't copy the code correctly, and I prefer to work out what's missing using comments.

While I admit that the wording of the close reason isn't perfect, I consider this the appropriate close reason for a number of minor syntax errors, including:

  • Writing if (variable = value) when it should use == or ===.
  • Omitting quotes when needed (e.g. around dates in SQL).
  • Forgetting to put () after the function name when intending to call the function.

Sometimes there are useful duplicates, such as Difference between single and double quotes in Bash and I'll use them. But even though there are available duplicates for the difference between = and ==, I usually won't use that dupe reason for the above if question. These questions serve little permanent benefit, since someone with the same problem will virtually never find it in a search, so we're better off closing them as typos and letting the Hoover delete them. So I just post a comment like "file.close should be file.close() to call the function" and VTC.

On the other hand, despite the fact that the text says "not reproducible", I rarely use this close vote simply because I'm unable to reproduce the OP's problem. This usually means they left a relevant detail out of the question, or they didn't copy the code correctly, and I prefer to work out what's missing using comments.

Source Link
Barmar
  • 778k
  • 27
  • 38

While I admit that the wording of the close reason isn't perfect, I consider this the appropriate close reason for a number of minor syntax errors, including:

  • Writing if (variable = value) when it should use == or ===.
  • Omitting quotes when needed (e.g. around dates in SQL).

Sometimes there are useful duplicates, such as Difference between single and double quotes in Bash and I'll use them. But even though there are available duplicates for the difference between = and ==, I usually won't use that dupe reason for the above if question. These questions serve little permanent benefit, since someone with the same problem will virtually never find it in a search, so we're better off closing them as typos and letting the Hoover delete them.

On the other hand, despite the fact that the text says "not reproducible", I rarely use this close vote simply because I'm unable to reproduce the OP's problem. This usually means they left a relevant detail out of the question, or they didn't copy the code correctly, and I prefer to work out what's missing using comments.