Elektra  0.9.0
Definition of Bool

Problem

Inconsistent use of bool in various parts of Elektra.

Constraints

Assumptions

Considered Alternatives

Decision

Use, depending on what your default should be:

Example:

if ( strcmp(keyString(k), "0")) {/*true*/} else {/*false*/}
if (!strcmp(keyString(k), "1")) {/*true*/} else {/*false*/}

In the documentation it should mention that a bool is used and which is the default.

The type checker plugin should allow

The convenience plugin should transform (it might be combined with a plugin that transforms everything lower-case):

Rationale

Implications

Related Decisions

Notes

See here