core
core copied to clipboard
Proposal: add func for `float` in `@math` pkg with postfix `f`
Unfortunately unless we bring back Num trait in X and make it generic, it's not possible to overload the function with different argument and same name.
IMO adding f
to every Float
function looks good enough, like:
-
lnf
-
logf
-
sinf
-
cosf
- ...
Originally posted by @tonyfettes in https://github.com/moonbitlang/core/issues/1050#issuecomment-2398611224
@bobzhang