It doesn’t seem particularly useful. Why would you want to unify name generation?
Also, the classical glGenTextures and the other ones allow you to get many names at the same time. Why would you want to do that?
It would be better to have
textureID = glCreateTexture();
or if you want to unify
textureID = glCreateName(GL_TEXTURE);
Generating texture ID is not cost free. It probably does some synchronization with GL server thread. It is similar as any glGet* call. So it is better to generate 100 of texture IDs in one go to amortize the cost. This is at least true with NVIDIA drivers.
void GenBuffers( sizei n, uint *buffers );
returns n previously unused buffer object names in buffers.
These names are marked as used, for the purposes of GenBuffers only, but they acquire buffer state only when they are first bound with BindBuffer, just as if they were unused.
A buffer object is created by binding a name returned by GenBuffers to a buffer target.
so all the driver is supposed to be doing is reallocating memory to increase the size of the relevant name table.
But NVIDIA has direct-state-access, and the objects can be accessed before the first bind, so they either need to pre-create all of the objects or add code to every DSA call to detect the first use of a name and create its object.
A call to tell the driver how many slots it needs to reserve in each of its name tables and then individual ‘Create’ calls would be more consistant with how object oriented languages work, and would fit well with the DSA concept, but it is unlikely the ARB would make such a fundamental change.
More important is having DSA in core and something like NV_shader_buffer_load to minimise cache misses by using GPU addresses instead of names as the handles.