A user posts a "why did they do this like that in Java" question.
Someone warns them in the comments that it will, naturally, be closed.
In an attempt to save it, the OP makes an edit, which in my opinion was in the right direction, though probably inadequate. Someone else suggests that they should not have made that edit, so the OP reverts it.
In the meantime, I post an answer which, although not exactly definitive, is about as close to definitive as an answer can get. It explains something that goes on under the hood in Java which many people might be unaware of.
Then, the question gets closed.
My answer has collected 8 upvotes, so naturally, I would prefer that the question gets re-opened.
So, I make some edits to the question's title, body, and tags, and vote to re-open.
My edits turn this "why did they do this like that in Java?" question into a "What is the specific benefit of implementing this like that in Java?" question. (Is that enough? I do not know.)
When I re-check several hours later, I discover the following:
- All of my edits to title, body, and tags have been reverted by one of the guys who had voted to close, with no explanation. (9 hours ago.)
- My reopen request has been rejected. (2 hours ago.)
- There is a new re-open vote on the question. (And I added mine, so there are now 2, despite the fact that I think that the question was more worth re-opening with my edits than as it originally stood.)
What is going on here? Did I do something wrong?
The question: Why are java varargs arrays
"I think the question is unclear because I can't understand OP's hypothesis: among things available in Java, what else could theoretically be used to implement varargs; and why would any of those options, to the OP, make any more sense?"
Clearly solutions were crafted to work around the issue of not having varargs in Java before it existed. And something could also be placed within the language proper that doesn't map to arrays but hard code in offset access. So, if your answer were "There really is no other way to implement it" then that is one answer. OP asked properly.