As already discussed in the comments and other answers, there's generally little interest in fixing close reasons on questions that clearly should remain closed, in large part because there isn't a streamlined process for it. So in this answer I want to tackle the other aspect of the problem here: is the "typo or no longer reproducible" close reason being misused?
How-to questions vs. "debugging" questions
I've said a few times that debugging questions aren't really on topic for Stack Overflow - because by the time the necessary work has been done to bring the question up to standard, there isn't really anything to "debug" any more. However, others don't seem to like my implied definitions.
What I think we can agree on is that the underlying question in those cases is typically a "why" question - and in these cases, of course, a proper minimal reproducible example is necessary. Before we can explain why a system (the code, being executed on some machine) has a particular behaviour (an error message or wrong output), we need to know what that behaviour actually is, and we need to know how to reproduce it reliably (not just to study it, but to exemplify the problem so that future searchers can identify it). And it would, indeed, be wrong to say that something can't be reproduced simply because the OP hasn't reproduced it and shown that reproduction; you have a good point there.
However, the first two examples you've provided really don't fit into that category. They're clearly asking how to do something. In these cases, we don't want a "minimal reproducible example", because there is nothing to reproduce. Rather, it's the answers that require reproducibility.
A "minimal reproducible example", for our purposes, is code. Trying to add code (such as a failed attempt) to such questions misunderstands the goal of the site and of its (I'm going to use the word) gatekeeping. The goal is not to ensure that people who ask a question "have tried" something, because we don't require that - just like we don't require that the OP doesn't know, nor needs to know, an answer to the question being asked.
Rather, the goal is to ensure that the question is clear. For a how-to question, that means coming up with a proper specification for the task, so that we can properly test a candidate answer and know whether it's correct. It should be naturally and automatically clear what the right answer is for some simply stated, but relatively difficult cases, so that anything that makes the question non-trivial is properly exposed. As such, when information is missing, it's not a "debugging detail" that's missing, but a general detail. Such questions should be closed as Needs details or clarity instead.
When a trivial error isn't a typo
Beginners have "unknown unknowns", almost by definition. They don't necessarily have any transferable experience they can apply to the problem; so the rules about how a programming language works, may well seem entirely arbitrary. Many languages in common use, for example, use the =
symbol to indicate an assignment statement. In generic parlance (not necessarily proper CS terminology), it's a command; something imperative or causative; like a speech act. It's not used this way in other contexts; for example, mathematicians use =
to assert the equality of two quantities, not to cause it. Programming languages often invent ==
to verify that equality - something much closer in meaning, and a symbol not really used by anyone else.
On the other hand, people who have spent a decade or more writing code in such languages, will gradually forget about the arbitrary nature of these symbols, and the fact that someone else's intuition could easily be misleading. If you use one such language, you can transfer that experience to another such language, of course. (In fact, it will be difficult not to.) To the experienced programmer, that is, the beginner's "unknown unknown" becomes an unthinkable unknown: with that lost perspective, it's no longer possible to contemplate what it's like not knowing such a thing.
All of this is to say: just because the code says =
and should say ==
doesn't mean that the author of the code made a typographical error. Someone who doesn't understand that =
is for assignment and ==
is for equality comparison (in whichever hypothetical language) should be pointed at a canonical explanation of that fact. (And, indeed, for languages where ==
isn't for equality comparison, we might actually have such Q&A already. Not to mention the ===
case.)
And, of course, there are any number of other possible analogous cases. Who's to say that OP genuinely thought quotes shouldn't be necessary around a date in SQL? Or that two provided quote types would be interchangeable in Bash, the way that they are in Python? Or that both would be provided in the JSON data format when they actually aren't? How about expecting that empty ()
shouldn't be necessary after a function name, since there's nothing being provided there? All of those are eminently reasonable suppositions if you don't already know otherwise.
And, sure, someone who has such a problem almost certainly has an unknown unknown, and thus won't be able to search for a canonical. But others can search for that canonical - or even set it up for quick personal reference - and direct people there rather than putting in the effort for a more detailed, individualized communication. In all of these cases, there's an actual concept that merits explanation, and thus the canonical does in fact have value. Please use it.
When a clearly reproducible problem is still a "typo"
Sometimes people put considerable deliberate effort into typing out some code, but still manage to produce something completely wrong in what should be a fairly obvious way. Ideally, we'd be able to handle the question while being completely agnostic to the mindset of the author of the code. However, sometimes that seems to be difficult or impossible.
In some of these cases the code is just a complete mess. There's simply no way that an experienced programmer could glean the thought process behind it - it comes across as code written simply to have some code written (that "meriting an answer" problem from above). Or the OP seems to think the code means something radically different from what it actually means, but an experienced reader would have no idea what that intended meaning actually is. Or the OP correctly writes code to implement some algorithm, but there's no reason to expect that algorithm to solve the problem, and no obvious reason why someone would think it would.
In those cases, the question can be simply considered unclear and closed as such.
But a much more common case, in my experience, is the idiosyncratic logical error. Which is to say, for one possible example out of many: the OP seems to think that a particular part of the code should execute repeatedly, but it should actually execute only once in a proper implementation of the algorithm (or, for that matter, the other way around). If, upon this being pointed out, the OP clearly sees the simple logical oversight, that's essentially a typo. It directly matches the description and purpose of the close reason: "While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers".
As a hint: one of those "similar on-topic" questions, extending the example, might be "How do I control which code is inside or outside of a loop in X language?" (and we actually have very similar questions in some cases), or "Why does resetting X=0 inside a loop prevent using X to count iterations?". Judging by how common these sorts of posts seem to be, it really comes across to me that some beginners might genuinely not understand those things - and would benefit from being routed to a canonical explanation of the topic, even if they'd never be able to search for it themselves.
But if the OP wasn't actually asking anything like that, in any meaningful sense, then the question likely won't be a useful signpost.
(If there isn't such a canonical yet, please feel free to write one. But if the people who will need to see it, are going to have an unknown unknown, keep that in mind - and phrase the question so that it can be found by curators and experts, but understandable by beginners.)
YYYY-MM-DD
date was treated as a subtraction problem. Someone commented about the missing quotes. It seems to me very unlikely that somebody else would have the same problem. Even if they did have the same problem, I don't think they could find the duplicate using search.=
instead of==
. I know they're not strictly typos, they're "understandos". But they're too trivial to treat as real questions, because no amount of searching will find similar mistakes (the searchers don't even realize that's the problem).