BorrowScript spec – Combining the Rust borrow checker with TypeScript syntax
github.com
github.com
Every new language comes with great new features, but then layers some weird new syntax over the top, as if it's doing it just to be different, or avoiding being too similar too JS because it wouldn't get approval from the hardcore language crowd. I get how it's fun to play with something new, and get that rush as things slowly start to click, but I'd rather just build stuff.
I was always thinking: what are the minimal changes you need to make to TS code to have it run natively with a borrow-checker. If someone did this, you would then have the entire JS dev community writing performant native code, and we could have a quantum leap in performance of everything.
And now it turns out someone has. Kudos!