Justin Ohms
Apr 28, 2022

--

Very nice. I’ve written something very similar in the past. Two suggestions from that experience, treat your decision condition arguments as functions (automatically wrapping those that are not in anonymous functions) be very cautious of the order of your decision array as it will affect performance and can cause bugs that are difficult to identify. This construct is useful but it is not cheap and cannot be optimized for that reason I would avoid using it when you have fewer than 5 arguments.

--

--

No responses yet