Comment on Perhaps Rust Needs "Defer"parentComments−drdude1yThis is a great advice, thank you. I am learning Rust and this definitely gives me good pointers (no pun) how I should idiomatically handle them.EDIT: can this be done/automated using macros?−skavi1ycan’t really be handled nicely by macros outside of the case where the drop impl doesn’t need any data from the scope.−drdude1yThank you!
Comments
This is a great advice, thank you. I am learning Rust and this definitely gives me good pointers (no pun) how I should idiomatically handle them.
EDIT: can this be done/automated using macros?
can’t really be handled nicely by macros outside of the case where the drop impl doesn’t need any data from the scope.
Thank you!