- 
                Notifications
    You must be signed in to change notification settings 
- Fork 585
Open
Labels
questionFurther information is requestedFurther information is requested
Description
Suggestion
Most functions used to free handles can return errors and these errors are usually indicative of logic errors in the code. Unfortunately when using Owned<T> and/or Free there is no way to detect these errors.
It would be nice if Free::free() had some way to return errors. Even a basic Result<(), ()> to indicate the presence or absence of an error would be very useful.
As for Owned<T>, it would be nice if it had some kind of assertion to panic on error in drop, but this is a more risky proposal, since unexpected panics are quite destructive. Perhaps it could be a debug assertion.
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested