Number vs Float/Int #175
Replies: 6 comments 1 reply
-
The reason it only supports I think |
Beta Was this translation helpful? Give feedback.
-
Initially I thought about splitting between I propose:
|
Beta Was this translation helpful? Give feedback.
-
I think what you suggest can be done relatively easily, what we have to think about what operations would return in each case, this is what I got so far:
In addition it would be nice to have an operator for https://en.wikipedia.org/wiki/Modular_arithmetic
Under the hood it would all use the JavaScript |
Beta Was this translation helpful? Give feedback.
-
If we're to introduce Distinction |
Beta Was this translation helpful? Give feedback.
-
@Sija Can you explain why would that be counter-intuitive? |
Beta Was this translation helpful? Give feedback.
-
Because they mix the entities from two different levels - |
Beta Was this translation helpful? Give feedback.
-
AFAIK the language supports only the Number type for numbers. However, quite often I define indices in my code. I want to make sure that index is an integer. Another case is having an amount of items.
Are you against having this distinction and if yes then why?
Beta Was this translation helpful? Give feedback.
All reactions