$darkmode
Elektra 0.11.0
Lookup Every Key

Problem

On structures like maps or arrays there are different possibilities which keys are looked up in the KeySet and which are simply iterated.

Without any guidelines, applications would provide arbitrary inconsistent behavior.

Constraints

Assumptions

Considered Alternatives

Decision

Every key that an application wants to use, must be looked up with ksLookup using a cascading lookup key.

Rationale

Implications

Needs some helper functions or support in bindings as it is a bit tricky to implement e.g. for arrays.

Related Decisions

Notes