Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Those two type systems are not the same. Typescript has some soundness issues in the type system. They are there because they have to work seamless with javascript so it's understandable. And they improve many codebases that would have been otherwise written in javascript. But they do not in any way give you the same level of guarantees that OCaml, Haskell, or Rust would give you.




For all practical purposes I believe it does the same thing.

If you are choosing ocaml they most definitely do not do the same thing for all practical purposes.



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: