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

`Try` expression wrapper #66

Open eelstork opened 3 years ago

eelstork commented 3 years ago

The Try expression wrapper would return a boolean. Example:

return Try(obj = EvalObj()) && done;  // false if null, true otherwise.

Converting null objects to a failing status is an alternative; type safety?