News for hackers. Stuff that matters.
Re:Asynchronous IO in Rust by acconsta on Friday September 18, 2015 @02:13PM (#10241006)
Right, duplicating every method that allocates also isn't very elegant.

But could Box and containers be polymorphic on an OOM handling trait?

Alternatively, one could imagine an OOM-safe container that returns results, and a convenience wrapper class that unwraps them. That might harm efficient code generation though.

There are no comments on this comment yet.