Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.
Welcome to Code Review. Here, we review specific code and suggest how to improve it. However, the way you have framed the question, you are asking a generic question about some nebulous esthetic principle, with some code tossed in merely as an example. We don't do vague/hypothetical discussions here. – 200_success yesterday
Algorithmically the task can be similar to:
I don't see how the answer to this question is likely to be any more opinion based than any other Code Review answer.
And so I can't agree with my literal interpretation of the close reason.
The user has provided two solutions that work.
- The question, to me, looks like most comparative review questions. Where the user is asking "what's the best way to do X task", just like it is here.
And so I don't see how the reasons provided justify closing the question. To me it looks like the results of a lynch mob.
Why is this question off-topic?