Re:Single Page Applications using Rust
by lmm on Tuesday August 11, 2020 @08:24PM
(#24127454)
Typescript's type system actually pretty limited. I spent about two weeks trying to do something nice with it before giving up and trying Scala.js, where I was able to do everything I wanted within a couple of days.
[ Parent
| on HN ]
Re:Single Page Applications using Rust
by KajMagnus on Wednesday August 12, 2020 @12:08AM
(#24128521)
How long ago was that?
Typescript gets better all the time, I didn't the last year or so run into anything I couldn't do in Typescript (although using it all the time, and Scala too)
I think it was last year. There was no nominal typing at all, the unsound variance of arrays meant I couldn't really trust my types anyway, I wasn't able to treat structures generically as records the way I'd like (i.e. no shapeless equivalent) and of course there was no HKT.