Hacker News new | past | comments | ask | show | jobs | submit login

I stand corrected.



> So you think, hey! I get to use scala.util.Random in javascript instead of javascript's shitty Math.random() ! Woah! That is so beyond awesome.

What? You can certainly use scala.util.Random from scala.js, there are very few Scala features that Scala.js does not actually support, such as blocking (because javascript) and reflection.

> Because this is the scala api that the scalajs folks expose - https://www.scala-js.org/api/scalajs-stubs/latest/#scala.pac.... . So that's fewer than 70 types.

That's not everything that's available in Scala.js, those are just some stubs for smooth cross compiling.

---

Scala.js is certainly not for every project. It's not a better typescript than typescript is. But typescript also isn't the right tool for every project.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: