$darkmode
Elektra 0.11.0
Null

Problem

Null keys do not have a semantic and make API more difficult.

Constraints

Assumptions

Considered Alternatives

Decision

Null keys get clear semantics: they are for representing keys that do not have a value, i.e., only represent structure in configuration files.

For example, an INI section is a null key:

1 [section]
2 key = value

For example, in other config formats there might be keys without any value. Here key1 would be a null-key and thus is different to the value of key2, i.e., an empty string:

1 key1
2 key2 = ""

Rationale

Implications

Related Decisions

Notes