EnableVariadicOperatorASTs enables a compact representation of chained like-kind commutative operators. e.g. `a || b || c || d` -> `call(op='||', args=[a, b, c, d])` The benefit of enabling variadic operators ASTs is a more compact representation deeply nested logic graphs.
(varArgASTs bool)
| 169 | // The benefit of enabling variadic operators ASTs is a more compact representation deeply nested |
| 170 | // logic graphs. |
| 171 | func EnableVariadicOperatorASTs(varArgASTs bool) Option { |
| 172 | return func(opts *options) error { |
| 173 | opts.enableVariadicOperatorASTs = varArgASTs |
| 174 | return nil |
| 175 | } |
| 176 | } |
no outgoing calls