New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(#504) - Equality using byte representation #532
Conversation
[] > as-bytes | ||
if. > @ | ||
^ | ||
00-00-00-00-00-00-00-01 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andreoss I think bool must map to one byte, not eight
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yegor256 There is no way to do that without introducing narrowing casting to the language.
TRUE eq 1
and TRUE eq 01-
would mean that 01- eq 1
, which is not since 1
is 8 bytes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yegor256 Or bytes
could ignore leading zeros when comparing bytes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andreoss this should be true: TRUE eq 01-
, but this one false: TRUE eq 1
Codecov Report
@@ Coverage Diff @@
## master #532 +/- ##
============================================
- Coverage 81.29% 81.07% -0.23%
Complexity 456 456
============================================
Files 131 126 -5
Lines 2400 2372 -28
Branches 216 216
============================================
- Hits 1951 1923 -28
Misses 381 381
Partials 68 68
Continue to review full report at Codecov.
|
@andreoss see my comment above |
@rultor merge |
@andreoss @yegor256 Oops, I failed. You can see the full log here (spent 9min)
|
@rultor merge |
Closes #504