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)
| 156 | // The benefit of enabling variadic operators ASTs is a more compact representation deeply nested |
| 157 | // logic graphs. |
| 158 | func EnableVariadicOperatorASTs(varArgASTs bool) Option { |
| 159 | return func(opts *options) error { |
| 160 | opts.enableVariadicOperatorASTs = varArgASTs |
| 161 | return nil |
| 162 | } |
| 163 | } |
no outgoing calls