gobuffalo / plush

The powerful template system that Go needs
MIT License
895 stars 57 forks source link

`if` evaluation could be improved some more to make it efficient #165

Closed sio4 closed 1 year ago

sio4 commented 1 year ago

Regarding #157 and #164, it seems like the if evaluation code could be improved some more to reduce unnecessary evaluations. Especially, it could be better if OR condition stops further evaluation when the left part is already true, also AND condition stops further evaluation when the left part is already false.