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

i think the original post just mentionned « costly ». It didn’t say it was impossible to mess things up even with rust. Just that it removes the cost of checking types are still matching after a refactoring or a dependency update.


This a true, but the advantage is probably more than offset by the relative cost of JS vs Rust developers. You can also add Flow types.

A single threaded environment does not yield the usual advantages of the Rust borrow checker.


> the relative cost of JS vs Rust developers

I.e. pay peanuts, get code monkeys?

> A single threaded environment does not yield the usual advantages of the Rust borrow checker.

This is quite wrong - reference invalidation and async code that's being scheduled within a single thread are two common examples where it matters a lot.


Lots of boilerplate and error-prone code can also be avoided by implementing `drop` on relevant types, this can yield to pretty interesting APIs in the web space.


The borrow checker still helps quite a bit with a single thread: http://manishearth.github.io/blog/2015/05/17/the-problem-wit...


Typescript allow that too.




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

Search: