-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider using scopeguard
crate
#41
Comments
I'd rather rather remove I actually wanted to wrap all types coming out of quickjs immediately with custom types. I didn't do it yet because I wrote them requiring a reference to |
Recently I've discovered
scopeguard
crate. It allows to do RAII-style cleanup of resources similarly to whatDroppableValue
structure does, but also provides a nicedefer!
macro to do it in a slightly less verbose way, similar todefer
keyword in Go.@theduke what do you think about replacing
DroppableValue
to usage ofdefer!
macro fromscopeguard
crate?The text was updated successfully, but these errors were encountered: