Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
cakealert
· 1y ago · 0 comments
It's explicit opt in RAII, you opt in by using a defer.
Comments
[–]
lenkite
1y ago
RAII, which stands for Resource Acquisition Is Initialization, is a programming technique in which a resource's lifetime is tied to an object's lifespan. An explicit defer does
not
fit this paradigm.
[–]
ioasuncvinvaer
1y ago
free is an explicit opt-in garbage collector.