Replies: 1 comment
-
We will not implement this idea because we will remove the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
🤔 The problem
Currently with Kotools Types, converting a number to an
AnyInt
for using its explicit API introduces too much boilerplate code.Here's an example for converting a random
Int
to anAnyInt
:💡 The idea
For facilitating the conversion to an
AnyInt
, we would like to add atoAnyInt
builder on all platforms for creating anAnyInt
from aNumber
, which may involve rounding or truncation.Here's the signature of this new declaration with some examples:
✅ Checklist
Here's the checklist for implementing this idea:
toAnyInt
builder #130toAnyInt
builder #131🙏 Help needed
Please give this post a reaction if you are interested in this declaration and comment below your thoughts on it.
We would love to have your feedback!
Beta Was this translation helpful? Give feedback.
All reactions