$darkmode
Elektra 0.9.12
Key Name

Often a Key argument is used when you just need a key name. This is because with a Key we know the name is valid and we get an unescaped name. Using a Key here makes the API a bit confusing.

There could be a richer API for manipulating key names without relying on the escaped name (e.g. concatenating two full key names). With the current situation, all these functions would need to be part of the API for a key. Adding such functions to the key API is certainly not minimal.

Continue keeping 3 classes: Key, KeySet and KDB.

Text partly copied from https://github.com/ElektraInitiative/libelektra/pull/4201#pullrequestreview-840564988