3 ms·
I just wish the creator of Rust had said "I'm going to add a native compilation target and the minimal new syntax to support borrow checking to TypeScript and m
by grumblingdev 4y ago
I just wish the creator of Rust had said "I'm going to add a native compilation target and the minimal new syntax to support borrow checking to TypeScript and make interop extremely easy".
Imagine that! We would have one syntax that can potentially be used for everything. A Rust-like syntax will never be used to write web apps.
Then you have simplicity with opt-in designed complexity when needed. It's like the separation of beginner vs expert features in design.
- Jtsummers 4y ago> I just wish the creator of Rust had said "I'm going to add a native compilation target and the minimal new syntax to support borrow checking to TypeScript and make interop extremely easy". Typescript did not exist when the Rust effort began. Rust saw its first public release in 2010, Typescript in 2012. Rust's development effort began several years before that public release (not sure about Typescript). Until we can rewrite the timeline (in which case, Typescript vs Rust would be among the most useless things to effect) then there's not much point in wishing that Rust had taken Typescript as its base.