News for hackers. Stuff that matters.
Re:Effective Go by Macha on Sunday October 03, 2021 @02:53PM (#28739580)
Java has try-with-resources and Python has context managers, I wouldn't consider either of them harder to use correctly than defer.
Re:Effective Go by morelisp on Sunday October 03, 2021 @02:57PM (#28739610)
I'm not talking about defer at all. The contrast would be C++'s RAII.