3 ms·
I noticed the article had a tendency to compare numbers in Typescript with integers in ReasonML, and I was wondering why. I guess a clearer distinction between
by mcv 7y ago
I noticed the article had a tendency to compare numbers in Typescript with integers in ReasonML, and I was wondering why.
I guess a clearer distinction between the two can be nice, but then how does that compile to javascript?
- yawaramin 7y agoReasonML ints and floats both compile to JavaScript numbers. See https://bucklescript.github.io/docs/en/common-data-types#shared https://bucklescript.github.io/docs/en/common-data-types#sha... for a type mapping table.