Skip to content

Comment on Perhaps Rust Needs "Defer"parent

Comments

If it's really fine, shouldn't the compiler optimize that if away?

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

Isn't that common with changes the optimizer does? What else is the point of it?

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.