Open anton-trunov opened 4 months ago
Actually it would make sense to move from +
to |
operation for applying flags because it literally sets specific bit to 1, and in that case applying the same flag multiple times won't change anything
This is indeed a nice suggestion for the current implementation!
For instance,
should result in a compilation error.
mode
field should be used at most one time;mode
expression should only contain the+
sign;Ideally, arithmetics should be excluded here at all and the mode field should have its own unique type. But it looks like an idea for Tact 2.0, because we break backwards compatibility in this case.