I was also interested in this problem.
Because “detach” and “delete” have different meanings.
In C/C++ language, memory is always allocated and released manually.
As a programmer, it’s embarrassing to leave memory and languish resources.
For those familiar with C/C++, this is a natural question.