News for hackers. Stuff that matters.
Re:Why Is SQLite Coded in C? (2017) by gowld on Thursday March 15, 2018 @06:50AM (#16591706)
C doesn't have destructors, so how do you release resources acquired with RAII when the acquiring object goes out of scope?
Re:Why Is SQLite Coded in C? (2017) by steveklabnik on Thursday March 15, 2018 @07:48AM (#16591951)
C programmers, in my experience, will use a "goto cleanup" pattern to emulate RAII in this case https://softwareengineering.stackexchange.com/a/154980