The tag wiki summary for loops reads:
Loops are a type of control flow structure in programming in which a series of statements may be executed repeatedly until some condition is met.
There is also a (rather unsatisfying, and grammatically incorrect) tag usage section, that reads:
The tag loops can be used for programming related problems in implementing loops feature of any programming language.†
I frequently find questions with this tag on SO that fail into one of three categories:
- Questions explicitly pertaining to "loop" control flow constructs; syntax, etc. (Example, Example)
- Questions explicitly pertaining to issues that directly involve logic / programming errors or questions related directly to loops. (Example, Example, Example)
- Questions about code that happens to contain loops, even though the root issue is unrelated to these constructs. These fall into two subcategories:
With the current tag definition, only 1 and 2 categorically belong in that tag. 3.1 is a candidate for possible removal of tag, and the tag should most certainly be removed from 3.2.
As far as data organization goes this tag doesn't seem to do much -- most questions about loops specifically pertain to the language they are written in, "loops" are a very basic construct, and so a simple language tag without "loops" will generally be enough to get the attention of a capable answerer. It also seems unlikely that somebody would want to browse the tag looking for general interesting questions about anything that has to do with loops (to each his own, though...).
However, I suppose it is useful for SEO. Additionally, the tag is somewhat popular, having 155 followers (?) and ~20,000 questions at the time of this writing (otherwise, to be honest, I would have just made a burninate request).
What is the intended goal of this tag? Could the tag wiki use some improvement, or is it correctly conveying the intended goal of the tag? Is this tag frequently misused and, if so, is there a way to reduce misuse? It seems often misused to me, and fairly generic. I feel the tag wiki could use some polishing. I try to clean up "loops" tags when I see them if I am sure the question falls into category 3.2, but for the most part I'm unsure how to handle this tag, and am unsure when (and if) it should legitimately be used.
† To me, this actually almost reads like it should be used on questions related to language interpreter and compiler design; which is obviously not the intention. So this, I feel, could at least use some clean up -- I'm just not sure how it should be cleaned up.
do
form and the namedlet
), and Haskell has looping constructs of various sorts scattered through its libraries.