Implement Float.== in Inko #584
Labels
accepting contributions
Issues that are suitable to be worked on by anybody, not just maintainers
compiler
Changes related to the compiler
feature
New things to add to Inko, such as a new standard library module
runtime
Changes related to the Rust-based runtime library
std
Changes related to the standard library
Milestone
Description
Float.==
calls out toinko_float_eq
, incurring a function call cost. We should be able to implement this function in pure Inko, and the only missing bit is Rust'sf64::is_sign_positive
, which too can be implemented in Inko.Thus, the steps would be:
Float.sign_negative?
Float.sign_positive?
(this simply inverts the result ofFloat.sign_negative?
)inko_float_eq
with pure Inko codeThis should be done after #578 is merged, otherwise said pull request may run into a bunch of merge conflicts that I'd like to avoid.
Related work
No response
The text was updated successfully, but these errors were encountered: