←back to thread

517 points bkolobara | 1 comments | | HN request time: 0.227s | source
1. jemiluv8 ◴[] No.45043491[source]
The Typescript example given is an obvious bug to me even before I knew how the window redirect thing works. It was an obvious control flow issue

And I find the event loop vrs concurrency via mutexes to be like an apples to oranges comparison. They both do some form of concurrency but not nearly in the same way

Again, Typescript is hardly considered a language. It is just a tool used to keep javascript under some control on large projects. Again, the comparison between rust and Typescript on a language level is not a great match.

As for fearless refactoring, don't get me started. I experienced this the first time I was porting a vanilla js backend to a typescript version. It was awesome. I won't say it works in much the same way as rust does but man, if you ever ported a rest api written in javascript to Typescript - you'd experience a similar effect.