currently I use a property named valve_open, as a boolean
valve_open = true
If a format could be specified for boolean datatypes, like this:
$format=closed,open: essentially an enum with the false-specifier first, and true specifier last
It allows better description of state, whilst the internal representation remains a boolean. It would allow me to rename the property to just valve, and still be descriptive.
EDIT: reversed the order. since false is often represented as 0, and true as 1, so those values could be used as the index into the array that the values are.
currently I use a property named
valve_open
, as a booleanvalve_open
=true
If a format could be specified for
boolean
datatypes, like this:$format=closed,open
: essentially anenum
with thefalse
-specifier first, andtrue
specifier lastIt allows better description of state, whilst the internal representation remains a boolean. It would allow me to rename the property to just
valve
, and still be descriptive.EDIT: reversed the order. since false is often represented as 0, and true as 1, so those values could be used as the index into the array that the values are.