Re:Perhaps Rust Needs "Defer"
by Traubenfuchs on Wednesday November 06, 2024 @06:59AM
(#42060748)
If it's really fine, shouldn't the compiler optimize that if away?
[ Parent
| on HN ]
Re:Perhaps Rust Needs "Defer"
by lifthrasiir on Wednesday November 06, 2024 @07:12AM
(#42060937)
Of course (there are several GCC attributes for that), but it is not really like that an additional check improves readability anyway.
It has different performance characteristics