2 ms·
> You wouldn't abort by default when you run out of disk space, would you? If most of the language and standard library required allocating disk space to funct
by lmm 10y ago
> You wouldn't abort by default when you run out of disk space, would you?
If most of the language and standard library required allocating disk space to function then I would indeed abort by default, because very few programs would be able to do anything useful in those conditions, so the most useful thing is to fail fast.
It's possible to design a language and standard library that can remain usable in out-of-memory conditions, but the costs would be severe, and not justified for the overwhelming majority of rust use cases, I think.