Comment Comment by coldtea defer is great for many use cases, available in Go, Swift and other languages, and nothing like a kludge.If anything RAII is unfit for C (which doesn't have classes), and in itself, a kludge (it's an idiom, not a language feature). parent coldtea 5 years ago
If anything RAII is unfit for C (which doesn't have classes), and in itself, a kludge (it's an idiom, not a language feature).