I get why people ask questions like that. Many questions on SO are often weird because of the XY problem [0]. Someone asks for X, people answering think doing X is really weird and difficult, and thus dig a bit more. They then find that the asker really wants to achieve Y which is simple to do.
[0]: https://meta.stackexchange.com/questions/66377/what-is-the-x...