3 ms·
> especially when you want to do something the you are pretty sure will be safe (It's worth noting that often the compiler is complaining because it actually i
by dbaupp 12y ago
> especially when you want to do something the you are pretty sure will be safe
(It's worth noting that often the compiler is complaining because it actually isn't safe.)
- chrismorgan 12y agoIndeed, I’ve been certain that something that it’s not letting me do is safe, only to realise a bit later that actually it was right in a subtle way. There are certainly some valid things that the compiler will forbid which you then need to work around instead, but by and large I trust the compiler to be right more than I trust myself. (Bear in mind, still, that these sorts of arguments of Rust’s superiority in such things are frequently only applicable for comparisons with languages like C++; often they are the sorts of things that a managed language would not have a problem with, though also not infrequently it would lead to things like data race.)
- bjz_ 12y agoYes! It is often showing a flaw in your mental model, which can be painful at first, but once solved it will ultimately result in more reliable code.