PaesslerAG / gval

Expression evaluation in golang
BSD 3-Clause "New" or "Revised" License
713 stars 83 forks source link

Move `parseIf` operator in `base` #93

Closed Dragomir-Ivanov closed 1 year ago

Dragomir-Ivanov commented 1 year ago

Greetings, Kudos for the awesome package!

I do think that parseIf operator should be in base, because it is useful in arithmetic, but is not arithmetic operator itself. Currently I am using .Full(), instead of just .Arithmetic() just because of it.

Best

generikvault commented 1 year ago

Hi,

I've exposed TernaryOperator so you can mix it yourself with NewLanguage(Arithmetic(), TernaryOperator())

Best

Dragomir-Ivanov commented 1 year ago

Thanks a ton!