Comment by pjaoko

3 days ago

> Rust's rich type system and ownership model will guarantee me memory-safety and thread-safety, which eliminate many classes of bugs at compile-time.

With PHP, you don't have to worry about compile-time bugs, because there is no compile time.

…and instead you get runtime bugs which is somehow better?

  • you also get runtime bugs with rust and everything else, so i just don't get the "somehow better" line of comparison

    • The idea is that if something would have been a compile-time error (ex: using a method that doesn’t exist), but you don’t see that compile error because you don’t have a compiler, the error is still there. It’s just that you won’t see it until the associated code happens to run. Essentially the compiler can catch whole classes of bugs early on. Just because it’s annoying to be told your code has bugs doesn’t make that better than having bugs and just not being told.