You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, any code (be it in a function, method or other) can fail with an out-of-memory exception. Its not clear how best to resolve this:
We could update the return type of anything which could cause a memory allocation. But, even a simple assignment can cause a memory allocation (i.e. its if a copy)!
Another option is to have an exception mechanism for certain runtime faults like this. Then, we can catch such exceptions and deal with them for error recovery.
At the moment, any code (be it in a
function
,method
or other) can fail with an out-of-memory exception. Its not clear how best to resolve this:See this RFC in Rust, as one possible example.
The text was updated successfully, but these errors were encountered: