News for hackers. Stuff that matters.
Re:Programming a space invader in OCaml and OpenGL: lessons ... by throwaway894345 on Friday February 21, 2020 @01:25PM (#22385421)
TypeScript extends the syntax to support type annotations; it's not trying to fundamentally fix JS syntax.
Re:Programming a space invader in OCaml and OpenGL: lessons ... by erichocean on Friday February 21, 2020 @05:58PM (#22387855)
Now enforcing type safety isn't a fundamental part of a language? I get the impression that you'd dismiss Rust as "basically C".

    ¯\_(ツ)_/¯
Re:Programming a space invader in OCaml and OpenGL: lessons ... by thedufer on Friday February 21, 2020 @08:18PM (#22388730)
It is, that's the point. Reason is, as was said upthread, a "veneer". It changes the syntax only, nothing else is different (you can convert back and forth between the syntaxes losslessly). TypeScript makes deep changes to the language by adding type safety.
Re:Programming a space invader in OCaml and OpenGL: lessons ... by throwaway894345 on Saturday February 22, 2020 @02:11AM (#22389816)
I have no idea how you got that from my post. I don’t know whether type safety is “a fundamental part of a language” or not, but that’s irrelevant to my point. TS extends the JS syntax to support type safety. Reason changes OCaml’s syntax altogether because it’s broken. Big difference.