Closed lindeer closed 2 years ago
You can change or inline static method. I also think to add two subclasses - Scalar and Logical.
you mean I should drop this PR and change calc
method instead of creating new class? and later you define Logical
class?
Changing calc
method.
hey @ykmnkmi , how about this PR~
Thanks.
In case
{% if page.next and page.next.path %}
, currently jinja would throwNoSuchMethodError: The method '[]("path")' was called on null
, actually it did not need to evaluate right expression ofBinary
.maybe change
calc
directly is more simple, but that may break yourstatic Object? calc()
style, so I extends a_LogicBinary
class so as to keep it.