1

I'm quite familiar with the framework, I love it since inception.

One thing that I haven't fully been able to grasp is why the Typing was sometimes off.

Specifically for this question, number, I'm not sure why the int wasn't used, at first I thought it might be the discrepancy of behavior between int32 / int16 / float etc.. But that doesn't make sense (to me) in transpilation.

So from the lib it needs to play nice with Math.

My question is really about semantics, why was the decision made to use number and not int ?

jps
  • 20,041
  • 15
  • 75
  • 79
Pogrindis
  • 7,755
  • 5
  • 31
  • 44

1 Answers1

10

Because that is what JavaScript uses.

Example

console.log(typeof 123); // 'number'
basarat
  • 261,912
  • 58
  • 460
  • 511