active-logic / activelogic-cs

Behavior Trees and Case Logic for C#7
GNU Affero General Public License v3.0
106 stars 7 forks source link

Make certainties type safe with sequences and selectors #51

Closed eelstork closed 4 years ago

eelstork commented 4 years ago

In the near future, all certainties (loop, pending, impending, ...) will be implicitly convertible to status as we take a more integer approach to the certainties API.

Current approach, where a certainty is convertible to status via labeling (loop.forever && status) is a wooden shield. It does not actively prevent errors, only expose contradiction semantically. With that, conversions still occur, so the referred limitations already apply.

Pedantic & forms (such as the current action & status in lieu of action && status) will be dropped. Although logically correct this creates a situation where a single &, used accidentally and causing unwanted pseudo-parallelism, does not really stand out.