5 ms·
Agree in essence - the code is basically saying something like "AND CONDITION1, CONDITION2" which is awful to me. In that context, I think "any" (for "or") and
by whatever_dude 10y ago
Agree in essence - the code is basically saying something like "AND CONDITION1, CONDITION2" which is awful to me.
In that context, I think "any" (for "or") and "all" (for "and") make a lot more sense. E.g.
all(first, second)
It'd read as "ALL of CONDITION1, CONDITION2". More complex combinations are also easier.
all(any(first, second), third)
- haxy 10y agoThat would be a lot easier to do. Based on the example all you need to do is: var any = logic.or, all = logic.and;