Re:Udash – Scala and Scala.js Reactive Web Framework
by th1nkdifferent on Monday February 12, 2018 @04:34AM
(#16357555)
Could you cite an example of how Scala is unsuitable for the web? Between Scala and JavaScript, I would pick Scala in a heartbeat for one reason alone - it's strongly typed. Both of them offer OO & FP.
[ Parent
| on HN ]
Re:Udash – Scala and Scala.js Reactive Web Framework
by fknop on Monday February 12, 2018 @04:38AM
(#16357576)
Strongly typed was one of the problem I found. TypeScript offers a better alternative to typing on the web because it keeps the compatibility with javascript and also have a real any type when it's really necessary. Typescript now can import raw js without types definitions unlike Scala.
Re:Udash – Scala and Scala.js Reactive Web Framework
by lmm on Monday February 12, 2018 @05:50AM
(#16357856)
I believe Scala can use javascript libraries either dynamically or with type definitions in exactly the same way as TypeScript?
I tried to use TypeScript but the type system just wasn't good enough; when you've been working in a strongly-typed language like Scala for a while, a language without nominal types or HKT just isn't going to cut it.
Re:Udash – Scala and Scala.js Reactive Web Framework
by th1nkdifferent on Tuesday February 13, 2018 @02:25AM
(#16365344)
Could you illustrate, preferably with an example, how weak type system would have worked better than a strongly typed system?