5 ms·
> 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 PH
by pjaoko 1y 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.
- josh-sematic 1y ago…and instead you get runtime bugs which is somehow better?
- decimalenough 1y ago[dead]
- pjaoko 1y agoyou also get runtime bugs with rust and everything else, so i just don't get the "somehow better" line of comparison
- josh-sematic 1y agoThe 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.