News for hackers. Stuff that matters.
Re:Single Page Applications using Rust by mplanchard on Tuesday August 11, 2020 @03:23PM (#24124760)
I would choose Rust over TS not for any performance characteristics, but because I strongly prefer it as a language, due in large part to features like pattern matching, sum types, exhaustiveness checking, traits, etc.

I do quite like TS, but you can never really get away from the fact that you’re still limited by many historical JavaScript gotchas, and the type system is nowhere near as powerful as Rust’s.

Edit: That being said, as a business decision, TS will often be a better pick because it’s so much easier to find talent, and the learning curve is much smaller.

Re:Single Page Applications using Rust by chrfrasco on Tuesday August 11, 2020 @09:30PM (#24127783)
Sum types and exhaustiveness checking are doable with typescript! Though it's not especially ergonomic

https://www.typescriptlang.org/play?#code/C4TwDgpgBAygrgWygX...