zoffixznet / IOwesomeness

1 stars 0 forks source link

AP: IO::Handle's Closed status #2

Open zoffixznet opened 7 years ago

jnthn commented 7 years ago

The main downside to the mixin approach is that mixins cause a global de-optimization in MoarVM. That's a bit costly, though perhaps not so costly as I/O itself. I wonder if not nulling the handle object, and then making sure that MoarVM gives a good error on all operations on a closed handle, might be a viable alternative?