159
you are viewing a single comment's thread
view the rest of the comments
[-] tias@discuss.tchncs.de 2 points 4 days ago* (last edited 4 days ago)

But if you ever forget the with keyword, you have a leak. With proper RAII the resource acquisition and release is a property of the object's type and impossible to forget. RAII doesn't just mean "resource acquisition is initialization", it also implies "destruction is resource release".

this post was submitted on 06 Oct 2026
159 points (96.0% liked)

Programmer Humor

33564 readers
1163 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS