RSSAmplifier

Swatinem · May 21, 2023

The magic of scope guards

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

Scope guards in Rust are awesome! Apart from explaining why, I also want to explore one specific side of them that I have never read about directly: their effect on compile times. # A small RA(II)nt Let me start todays exploration with a bit of a rant. What I am talking about today, and what I refer to as “scope guards” is often called the RAII pattern. That stands for “resource acquisition is…

Read on swatinem.de

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.