Quote:Original post by AardvajkQuote:Original post by phresnel
* RAII
Couldn't agree more. It's a shame you can't somehow mark instances to destruct when they leave scope. I know about the using method, but having to implement the IDisposable interface just to have predictable destruction is probably the main reason I never got into C#.
I don't really understand the love of GC. Managing resources in a language that supports RAII is not a difficult issue for me.
difficult or not, it still is work :)
i loved RAII in c++, but since moving to c# i never really had much need for it anymore, at all. those spare moments, implementing the using pattern worked just well.
it's a matter of being able to let go with old habits. once you start to trust the gc, you don't bother about it anymore.