Comment

Comment by bits_and_bytes

RAII is terrible for memory resources - it's ok for things like locks I guess. Rarely do I want to couple initialization with allocation, I want bulk allocations/deallocations (and I want precise control over when that happens) and reset()-like functions so I can easily reuse memory.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton