Join Slack
Powered by
Just out of curiosity — how are things like Longs ...
# javascript
c
Chilli
04/29/2020, 3:49 PM
Just out of curiosity — how are things like Longs implemented in Kotlin/JS if JavaScript only has floating-point numbers? 🤔
a
araqnid
04/29/2020, 4:04 PM
They are implemented as objects iirc (whereas ints are implemented just as JS numbers)
b
bashor
04/29/2020, 10:16 PM
Take a look at implementations: •
long.js
•
long.kt
bashor
04/29/2020, 10:16 PM
Last one is used with new JS compiler backend
Open in Slack
Previous
Next