Posts tagged “language-spec”
2 posts Subscribe by RSS
2 posts
Rust drop order: locals, fields, temporaries, and why let _ drops right away
Rust drops locals in reverse order and struct fields in declaration order. Temporaries usually die at the end of the statement, and let _ binds nothing. Plus Rust 2024's scope changes.
Go defer: when arguments are evaluated, what order calls run in, and how results change
Go's defer evaluates arguments when the defer statement runs and calls deferred functions in reverse order just before the function returns. Here is why that lets them change named results.
No posts match. Try another word.