7

I ran across this C# question as part of a discussion in SOCVR about this question that was originally marked as a duplicate.

The question does not seem to be off-topic, which means a historical lock seems inappropriate. Per the timeline, a former moderator closed it (with the outdated "not constructive" reason) and another former mod reopened it and then locked it.

  1. Is this question actually off-topic?
  2. If not, why can we not just duplicate flag one?
7
  • 1
    Going by "I wondered what people's opinions were on the appropriate uses of type inference via var?" I would gather that right now it would attract opinion based close votes. It may not be off topic (it's about a feature of a language), but it wouldn't be a questions that should be asked on SO.
    – Braiam
    Commented Jun 11, 2020 at 16:22
  • 1
    Is there anything more to say about the topic that isn't covered in the 86 answers the question already has? I've voted to close the unlocked one as a duplicate of the locked one. Commented Jun 11, 2020 at 16:25
  • 1
    @HereticMonkey considering the the later question doesn't ask for opinions "What does “var” mean in C#?" rather than "opinions were on the appropriate uses of type inference via var" I would say that one isn't a duplicate of the other.
    – Braiam
    Commented Jun 11, 2020 at 16:30
  • @Braiam That's certainly a valid opinion to hold. Feel free to not vote to close as duplicates. Commented Jun 11, 2020 at 16:32
  • 1
    From what I can see from the timeline on the locked post (including deleted comments, etc...) it does appear this post was somewhat controversial even in May 2010 regarding its suitability for the site and was thrashed out in comments... it appears no-one (from my reading of comments) could really agree, and so it kept going. Then something in Feb 2013 drew attention to it and that debate started again as well as with it reaching 6 delete votes at one point...
    – Jon Clements Mod
    Commented Jun 11, 2020 at 16:55
  • 2
    ... it's that point a user flagged to point out it was heavily linked to and viewed. I'd guess the mod thought about that and decided giving the goings on with the other disagreements in comments (the history of the post - plus the building number of delete votes), that it was indeed off-topic but nothing would be gained by letting it get deleted, so hence a historic lock.
    – Jon Clements Mod
    Commented Jun 11, 2020 at 16:56
  • @JonClements Thanks for looking into it
    – Machavity Mod
    Commented Jun 11, 2020 at 18:25

1 Answer 1

7

To me, this question seems primarily opinion based.

It contains a lot of information, but the question, in essence, seems to just be this phrase:

I wondered what people's opinions were on the appropriate uses of type inference via var?

Also, answers seem to indicate personal preference on code clarity, with disagreement in the comments, indicating the question is actually opinion-based. And it has attracted a lot of meh/bad answers, many of which are deleted.

I think the current status for the question (historical lock) is just fine. It's a useful elaboration and list of opinions on var, but not an acceptable question for Stack Overflow.

5
  • This is exactly what I wanted to say. You could remove everything else from the question apart from that sentence, which means the question should have been closed as POB and deleted. Because there's a value in the answers it got historical lock.
    – Dharman Mod
    Commented Jun 11, 2020 at 16:28
  • 1
    @Dharman why not move those answers to a more deserving question?
    – Braiam
    Commented Jun 11, 2020 at 16:29
  • 2
    @braiam Feel free to do so. Bear in mind that most answers are only opinions, so they would not fit to any on-topic question anymore.
    – Dharman Mod
    Commented Jun 11, 2020 at 16:31
  • 1
    Perhaps just edit the question to remove the phrase seeming to solicit opinions?
    – Cody Gray Mod
    Commented Jun 11, 2020 at 20:51
  • 3
    @CodyGray That doesn't change that the question asks for opinions, and most answers provide opinions. I think it's fine as-is, there are other questions describing what var is without that issue, and the code style one is a relevant discussion, it just doesn't fit SO which required the lock, no need to ruin it.
    – Erik A
    Commented Jun 11, 2020 at 20:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .