Is there an existing issue for the same tech request?
[X] I have checked the existing issues.
Does this tech request not affect user experience?
[X] This tech request doesn't affect user experience.
What would you like to be added ?
The current implementation parses hexadecimal literals as a string with isBin flag. That flag is even passed to Vector.
It's a bug-prone and intrusive design. ~It causes the "double-binarization" bug in matrixorigin/MO-Cloud#2030.~
We should rewrite it in a better way. All hexadecimal literals should be recognized and stored as a hexnum Literal in the first place, then converted to unsigned integer or binary string according to the target type later. The isBin flag should to eliminated.
Is there an existing issue for the same tech request?
Does this tech request not affect user experience?
What would you like to be added ?
The current implementation parses hexadecimal literals as a string with
isBin
flag. That flag is even passed toVector
.It's a bug-prone and intrusive design. ~It causes the "double-binarization" bug in matrixorigin/MO-Cloud#2030.~
We should rewrite it in a better way. All hexadecimal literals should be recognized and stored as a hexnum
Literal
in the first place, then converted to unsigned integer or binary string according to the target type later. TheisBin
flag should to eliminated.Why is this needed ?
No response
Additional information
No response